ajvb / kala

Modern Job Scheduler
MIT License
2.11k stars 187 forks source link

--bolt-path does nothing #251

Closed 1oglop1 closed 1 year ago

1oglop1 commented 3 years ago

Hi, I tried to use kala with BoltDB inside the docker container and wanted to use the parameter --bolt-path to specify the file location, however it does not seem to do anything and kala still creates jobdb.db file in the same directory as kala executable.

kala serve --jobdb=boltdb --bolt-path=/kala/data/kala.db

Could you confirm this is the case or am I doing something wrong? Thank you!

zhangrr commented 3 years ago

Modify cmd/server.go

switch viper.GetString("jobdb") { case "boltdb": db = boltdb.GetBoltDB(viper.GetString("boltpath"))

Change to db = boltdb.GetBoltDB(viper.GetString("bolt-path"))

Run it : ./kala serve --jobdb=boltdb --bolt-path=/data/db

1oglop1 commented 3 years ago

Ah thanks for the workaround, I was looking at this piece of code but not knowing enough about used frameworks it did not strike me that there is a typo!