Skip to content

feat: detect stale Job by owner UID, delete it, fall through to create#1788

Open
sanya-pf9 wants to merge 1 commit intomainfrom
feat/clean-stale-job-with-retry
Open

feat: detect stale Job by owner UID, delete it, fall through to create#1788
sanya-pf9 wants to merge 1 commit intomainfrom
feat/clean-stale-job-with-retry

Conversation

@sanya-pf9
Copy link
Copy Markdown
Contributor

@sanya-pf9 sanya-pf9 commented Apr 6, 2026

What this PR does / why we need it

Which issue(s) this PR fixes

In CreateJob: when a Job with the expected name already exists, delete it and proceed to create a fresh one.

fixes #1787

Testing done

a lot of changes came up in formatting! Please ignore that
Difficult to recreate naturally, it is a race condition, but has occurred thrice. I have mentioned the same on Slack.

@sanya-pf9 sanya-pf9 marked this pull request as ready for review April 6, 2026 21:40
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.

Retry leaves migration permanently stuck -> stale Job from previous attempt is never replaced

1 participant