ajvb / kala

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

Add --persist-every command line option #131

Closed ajvb closed 7 years ago

ajvb commented 7 years ago

Main idea is that persisting can at times be expensive, and every 5 seconds may be too frequent. Allow users to set there own while retaining the default of every 5 seconds.

--persist-every would set the persistWaitTime argument here: https://github.com/ajvb/kala/blob/master/job/cache.go#L69 which is passed in here https://github.com/ajvb/kala/blob/master/main.go#L150.

Per @jrxFive's comment here: https://github.com/ajvb/kala/pull/130#issuecomment-255533627

leonardogcsoares commented 7 years ago

I'm up for this! =D Claim!

leonardogcsoares commented 7 years ago

PR at #133! Cheers! =D

ajvb commented 7 years ago

Fixed with #133