Closed dr460nf1r3 closed 1 year ago
hmm so you propose an enhancement, to skip missed crone execs ... and delay cron job init on startup ?
If you'd label it as enhancement, then yes, I'm proposing this to take away some of the destructiveness of cronjobs running at the wrong times.
Component
server
Describe the bug
Currently, it seems that missed cronjobs are getting executed when the instance starts up the next time.
In the environment I'm currently using Woodpecker, it is utilized to run Ansible playbooks at given times. This also includes scheduled server updates & reboots.
In the case of having the Woodpecker instance down & started up afterward, all those jobs are getting executed at once, causing servers to reboot when they absolutely should not.
I'm not sure whether this is an actual bug or just how the cron feature works, though this is kind of a dangerous behavior depending on what kind of tasks are dedicated to Woodpecker.
The proposal is to either change the behavior to not run missed crons at startup or to provide a way to turn it off.
System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]