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
According to the cron specification, it is not possible to restrict both the day-of-week and the day-of-month simultaneously:
While normally the job is executed when the time/date specification fields all match the current time and date, there is one exception: if both "day of month" and "day of week" are restricted (not "*"), then either the "day of month" field (3) or the "day of week" field (5) must match the current day.
Source: https://en.wikipedia.org/wiki/Cron#cite_ref-posix_8-0
Although it is generally not possible to restrict both fields, there is a hacky workaround described here and working for vixie-cron.
According to the cron specification, it is not possible to restrict both the day-of-week and the day-of-month simultaneously:
While normally the job is executed when the time/date specification fields all match the current time and date, there is one exception: if both "day of month" and "day of week" are restricted (not "*"), then either the "day of month" field (3) or the "day of week" field (5) must match the current day.
Source: https://en.wikipedia.org/wiki/Cron#cite_ref-posix_8-0
Although it is generally not possible to restrict both fields, there is a hacky workaround described here and working for vixie-cron.
Here is an example on cronguru restricting both day of month and day of week: https://crontab.guru/#42_5_*/32,10-17_*_Tue
When using Croniter, this workaround doesn't seem to work. Is this the intended behavior?
Thanks !
Martin
The text was updated successfully, but these errors were encountered: