Skip missed cronjobs and add delay for cronjobs on server start #2199
Unanswered
dr460nf1r3
asked this question in
Request a Feature
Replies: 2 comments
-
hmm so you propose an enhancement, to skip missed crone execs ... and delay cron job init on startup ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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]Beta Was this translation helpful? Give feedback.
All reactions