Skip to content

more cleanly handle snoozed and retryable states#104

Merged
bgentry merged 1 commit intomasterfrom
bg-fix-snoozed-job-timeline
Aug 3, 2024
Merged

more cleanly handle snoozed and retryable states#104
bgentry merged 1 commit intomasterfrom
bg-fix-snoozed-job-timeline

Conversation

@bgentry
Copy link
Copy Markdown
Contributor

@bgentry bgentry commented Aug 2, 2024

Issue #103 highlights another tricky edge case with attempting to determine job duration, in this case for snoozed jobs. Upon snoozing, it's actually not possible to determine the job's runtime from any of the data stored as of now. There's no error record with a timestamp, no finalized_at, and no other value saved to indicate when the job stopped executing.

This was actually resulting in a crashing error in the UI in this case. I fixed it by reworking some of the logic so that we focus on isolating the easy-to-detect errored case first. I added a Storybook scenario for this case, as well as one for pending, and verified that all the JobTimeline states look correct with realistic data.

Fixes #103.

@bgentry bgentry merged commit b1c9854 into master Aug 3, 2024
@bgentry bgentry deleted the bg-fix-snoozed-job-timeline branch August 3, 2024 00:30
brandur added a commit that referenced this pull request Aug 3, 2024
A bug fix release including the snoozed fix in #104.
@brandur brandur mentioned this pull request Aug 3, 2024
brandur added a commit that referenced this pull request Aug 3, 2024
A bug fix release including the snoozed fix in #104.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snoozed job cannot be viewed from UI

2 participants