salt icon indicating copy to clipboard operation
salt copied to clipboard

Feature Request: More customizable scheduling

Open jalons opened this issue 13 years ago • 5 comments

Currently, saltstack schedules can be set to run on a period, but can not be defined to run at specific time frames.

For example, you can say run every five minutes or every 12 hours, but you can not specify to run at 6AM and 6PM (Specified via the minion's timezone, I would assume).

It might also be nice to be able to push adjustments to this time frame from the master.

I do not like the idea of running these scheduled tasks from cron or similar on the master, as then having to manage multiple cron jobs outside of salt introduces an external dependency, an extra item to modify, ensuring run execution vs completion gets interesting, etc, and scheduled tasks then have an external dependency on a single master (or the jobs must be scheduled on all masters in a multimaster setup).

jalons avatar Oct 27 '13 13:10 jalons

If you have many servers in different regions, time zones and with different system settings, configuring scheduler this way will turn into hell. Btw, Salt can be used in many countries and a user shouldn't know about AM/PM stuff.

I think it's not very bad to use some external tool to cover this use case.

malinoff avatar Oct 27 '13 15:10 malinoff

We would like to improve it so that things can be run at a certain time, like cron. Otherwise any hourly operations will run at the same time -- I'm not sure we have a way to offset these jobs (though it may have been added, I haven't been in the scheduler code for some time). Looks like #7324 is about that offset issue.

#5946 is related.

I could have sworn this was a duplicate of an open issue, but I can't seem to find it, so I guess we'll keep this one around. =) Anyway, thanks for the request, we definitely want to increase the power of the scheduler, though for the moment, I would recommend using cron.

basepi avatar Oct 28 '13 22:10 basepi

@jalons Significant work has been on on the salt scheduler thanks to the good work of @garethgreenaway. Have you been able to try out some of the new features implemented in the last year or so? I think many of you suggestions have been implemented.

@garethgreenaway - what do you think? Have most of the things discussed in this request been addressed?

rallytime avatar Apr 08 '15 15:04 rallytime

@rallytime I believe all the requests are currently possible with the latest scheduling code.

garethgreenaway avatar Apr 08 '15 15:04 garethgreenaway

:+1:

rallytime avatar Apr 08 '15 15:04 rallytime