Open elreydetoda opened 1 year ago
Hi, Semaphore uses the Go library robfig/cron
to handle cron jobs. When setting up cron schedules you have a little tooltip linking you to this package's supported cron formats (see here).
So it appears that you are trying to use a cron format unsupported by this library.
You may want to test a newer Version Cron and Schedules got improved.
So, I've got a niche (or at least from a cron perspective) use case that I need to run a playbook on every first monday of the month.
I found this article which talks about how you can override the default behavior in cron to do this. So, I set the cron in semaphore to be:
0 5 */100,1-7 * MON
Unfortunately it seems like semaphore isn't interpreting that syntax correctly, because it just ran on this past monday instead of
2023-03-06 05:00:00
.It looks like it accepted the string properly when I dump out the schedule table in the web-ui & DB:
web-ui:
DB:
This was the event table:
I also looked at the systemd log and didn't see anything in there between those time:
Is there some other places I should look for errors or issues?
Please let me know if I can help in any other way.
While this shouldn't matter here is some more info on the setup:
Semaphore Service: running as systemd service