Skip to content

fix(uptime): fix cron monitor incident timing inconsistency#112692

Open
klochek wants to merge 2 commits intomasterfrom
christopherklochek/iswf-799-inconsistent-timestamp-use-in-cron-monitors-leads-to-invalid
Open

fix(uptime): fix cron monitor incident timing inconsistency#112692
klochek wants to merge 2 commits intomasterfrom
christopherklochek/iswf-799-inconsistent-timestamp-use-in-cron-monitors-leads-to-invalid

Conversation

@klochek
Copy link
Copy Markdown
Contributor

@klochek klochek commented Apr 10, 2026

Ensure we use the same kind of 'time' for timestamps when computing the start and end of crons open periods.
We currently use the consumer processing time for the start of an open period, but use the relay time for the close of it. In the event that a cron start is massively delayed due to backlogging, we wind up with the end coming before the start. This corrects that inconsistency by using the relay time for the open period start.

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 10, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 10, 2026
Ensure we use the same kind of 'time' for timestamps when computing the start and end of crons open periods.
We currently use the consumer processing time for the start of an open period, but use the relay time for the close of it.   In the event that a cron start is massively delayed due to backlogging, we wind up with the end coming before the start.  This corrects that inconsistency by using the relay time for the open period start.
@klochek klochek changed the title fix(crons): two possible fixes for cron monitor incident timing inconsistency fix(uptime): fix cron monitor incident timing inconsistency Apr 14, 2026
@klochek klochek marked this pull request as ready for review April 14, 2026 20:47
@klochek klochek requested a review from a team as a code owner April 14, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant