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
This crate isn't crontab compatible. For one, this crate supports seconds, which crontab doesn't allow at all.
Looking at the code, it uses 1 for Sunday, and 7 for Saturday.
There is nothing other crates can do which implement this crate besides trying to catch the format and change it manually. But that will only lead into issues with people already using this format.
Please see this issue. This crate was coded against the Quartz scheduling engine's cron syntax specification. Unfortunately, there is no single definitive standard.
I'm open to supporting various standards via a builder/config API, but I don't have the bandwidth to work on this crate actively.
Hi,
I use job_scheduler https://docs.rs/job_scheduler/latest/job_scheduler/ which apparently pulls cron 0.6.1 as dependency.
I noticed that this expression
0 0 17 * * Mon-Sat
is not
0 0 17 * * 1-6
Which according to crontab format however, it should be. The latter expression would fire on Sundays till Friday.
Are you one off in the numerical format for day-of-week?
Or were you one off back then with 0.6.1?
Should I ask job_scheduler to bump to newer version? I opened an issue with them lholden/job_scheduler#29
Best Regards,
Thomas
The text was updated successfully, but these errors were encountered: