-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't skip crons when time jumps forward due to DST #541
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
Open
rdingwall
wants to merge
1
commit into
robfig:master
Choose a base branch
from
rdingwall:prevent-skipped-crons-when-time-jumps-forward-due-to-dst
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Don't skip crons when time jumps forward due to DST #541
rdingwall
wants to merge
1
commit into
robfig:master
from
rdingwall:prevent-skipped-crons-when-time-jumps-forward-due-to-dst
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c85f2a7 to
0336bd2
Compare
0336bd2 to
59f645e
Compare
CybotTM
added a commit
to netresearch/go-cron
that referenced
this pull request
Nov 25, 2025
When time jumps forward due to DST (e.g., 2am→3am), jobs scheduled during the skipped hour now run immediately at the next valid time instead of being skipped entirely. This follows ISC cron behavior and fixes common user expectations. Based on robfig/cron PR robfig#541.
CybotTM
added a commit
to netresearch/go-cron
that referenced
this pull request
Nov 25, 2025
- Update badges and import paths for the fork - Document panic fixes (issues robfig#554, robfig#555, robfig#551) - Document DST handling improvements (PR robfig#541) - Update Go version requirement to 1.25 - Simplify and modernize documentation structure
5 tasks
CybotTM
added a commit
to netresearch/go-cron
that referenced
this pull request
Nov 25, 2025
Modernize the robfig/cron fork with critical bug fixes and improvements. ## Bug Fixes - Fix TZ timezone parsing panic when spec has no fields after TZ prefix (robfig#554, robfig#555) - Fix nil pointer panic in Entry.Run() when WrappedJob is nil (robfig#551) ## Enhancements - Implement ISC cron DST behavior for spring forward (robfig#541) - Upgrade to Go 1.25 - Finalize module path as github.com/netresearch/go-cron ## CI/Quality - Add comprehensive GitHub Actions CI workflow - Add golangci-lint v2 configuration - Add Dependabot for dependency updates - Fix deprecated io/ioutil usage ## Documentation - Update README for fork with migration instructions - Document all fixes and improvements All tests pass. Successfully integrated into Ofelia with full test coverage.
6 tasks
CybotTM
added a commit
to netresearch/go-cron
that referenced
this pull request
Nov 28, 2025
Create docs/MIGRATION.md with detailed migration documentation: - Quick start section with import path and go.mod changes - Go version requirements comparison - Behavioral differences with before/after examples: - TZ= parsing panic fixes (robfig#554, robfig#555) - Entry.Run() chain behavior fix (robfig#551) - DST spring-forward handling (robfig#541) - Step range validation (robfig#543) - Input length limits - Type changes (EntryID: int -> uint64) - New features overview (FakeClock, StopAndWait, Timeout, heap scheduling) - Migration checklist - Testing recommendations with code examples - Troubleshooting section Also update README.md to link to the comprehensive migration guide. Closes #73
6 tasks
CybotTM
added a commit
to netresearch/go-cron
that referenced
this pull request
Nov 28, 2025
Create docs/MIGRATION.md with detailed migration documentation: - Quick start section with import path and go.mod changes - Go version requirements comparison - Behavioral differences with before/after examples: - TZ= parsing panic fixes (robfig#554, robfig#555) - Entry.Run() chain behavior fix (robfig#551) - DST spring-forward handling (robfig#541) - Step range validation (robfig#543) - Input length limits - Type changes (EntryID: int -> uint64) - New features overview (FakeClock, StopAndWait, Timeout, heap scheduling) - Migration checklist - Testing recommendations with code examples - Troubleshooting section Also update README.md to link to the comprehensive migration guide. Closes #73
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We're investigating a production bug at Monzo where a 2:00 AM US/Pacific cron was skipped on 2025-03-09. We discovered the root cause is the https://github.com/robfig/cron library skips jobs that are scheduled during the interval when time jumps forward due to DST changes.
It seems the library's behavior is a bit non-standard in this regard, and differs from ISC cron which is used in most distributions of Linux and BSDs:
This PR aligns the behavior of the library with ISC cron.