New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CronJob will be run twice, when switching to wintertime #121594
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/wg batch |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened?
We have a CronJob configured to run each day at 02:00. The timezone is set to "Europe/Berlin" corresponding to CEST in summer (+02:00) and CET in winter (+01:00).
Which works fine most of the year, "exploded" this early morning, when Europe switched from CEST to CET going back from 03:00 to 02:00. Cause 02:00 happened again, the CronJob ran again causing conflicts with a restore job still running (started at around 02:45 CEST).
Comparing this behaviour to Debian's cron, where this is handled differently:
What did you expect to happen?
CronJob should only be run once, even when switching DST
How can we reproduce it (as minimally and precisely as possible)?
0 2 * * *
timezone
in CronJob toEurope/Berlin
Anything else we need to know?
Also posted to Reddit: https://www.reddit.com/r/kubernetes/comments/17jbw5s/cronjob_will_be_run_twice_when_switching_to/
Kubernetes version
1.26.6-gke.1700
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: