fix(cron): align scheduling with database time - #19
Merged
Merged
Conversation
psteinroe
force-pushed
the
feat/clock-skew
branch
from
September 15, 2026 13:23
0810cc6 to
0605249
Compare
psteinroe
changed the base branch from
main
to
test/integration-synchronization
September 15, 2026 13:23
psteinroe
force-pushed
the
feat/clock-skew
branch
from
September 15, 2026 13:37
0605249 to
40feb3b
Compare
psteinroe
force-pushed
the
test/integration-synchronization
branch
from
September 17, 2026 18:21
3de7a09 to
f219f0d
Compare
psteinroe
force-pushed
the
feat/clock-skew
branch
from
September 17, 2026 19:41
40feb3b to
21bcd4d
Compare
psteinroe
changed the base branch from
test/integration-synchronization
to
main
September 17, 2026 19:41
psteinroe
force-pushed
the
feat/clock-skew
branch
from
September 17, 2026 19:41
21bcd4d to
648ee34
Compare
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
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.
Align cron scheduling with the Postgres clock by sampling it into a worker-local offset.
Fail-open sampling
If a clock sample fails, the worker uses its current offset (local time initially), logs the failure, and retries ten minutes later. Refreshes are chained to avoid overlap, and worker shutdown clears the refresh timer.
Closes #13