I would like to schedule a highstate
to run every night but not in parallel. Is there a way to add batch
option to the scheduling system?
Example:
schedule:
highstate:
enabled: True
function: state.highstate
maxrunning: 1
when: 3:00am
kwargs:
batch: 1
Ideally I would like to also randomize the time when it runs. I guess I could schedule to run every two hours within one hour time range so it will run only once:
schedule:
highstate:
enabled: True
function: state.highstate
maxrunning: 1
range:
start: 3:00am
end: 4:00am
hours: 2
kwargs:
batch: 1