You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monit has the ability to schedule jobs per seconds, and now with Systemd timer, it's possible to set a lower accuracy for a job and then schedule a job to run every x seconds or microseconds.
I don't know if microseconds is doable with an interpreted language, but I think that providing an option to run a jobs every x second would be nice and it would be a remarkable improvement to Vixie Cron.
The text was updated successfully, but these errors were encountered:
May be a bit more tricky than that. The yacron main loop is a bit more lax:
Test each job crontab, does it match the current minute? If so, start it
Calculate how many seconds do we need to sleep until the start of the next minute
Sleep those seconds
Go back to step 1.
To support second precision, yacron would need to:
wake up every second, instead of every minute
the part "test each job crontab, does it match the current minute" would need to be tweaked:
some cron jobs are specified with only minute precision, they should not "match" every second in one minute interval, otherwise they would be started 60 times per minute, we don't want that
only the subset of the jobs that actually specify sub-minute precision should be allowed to test for a match multiple times per minute.
Personally I don't find it useful, but YMMV, and I wouldn't mind reviewing some code to do this.
Description
Monit has the ability to schedule jobs per seconds, and now with Systemd timer, it's possible to set a lower accuracy for a job and then schedule a job to run every
x
seconds or microseconds.I don't know if microseconds is doable with an interpreted language, but I think that providing an option to run a jobs every
x
second would be nice and it would be a remarkable improvement to Vixie Cron.The text was updated successfully, but these errors were encountered: