Skip to content

Fix backfill completion race during creation#68125

Open
GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/64534-backfill-create-race
Open

Fix backfill completion race during creation#68125
GayathriSrividya wants to merge 1 commit into
apache:mainfrom
GayathriSrividya:fix/64534-backfill-create-race

Conversation

@GayathriSrividya
Copy link
Copy Markdown
Contributor

@GayathriSrividya GayathriSrividya commented Jun 6, 2026

closes: #64534

Make backfill creation atomic so the scheduler cannot observe a partially initialized backfill and mark it complete before its DagRuns are created.

This moves the DagRun-info computation ahead of Backfill persistence, replaces the early commit with a flush so the whole create path stays in one transaction, and adds a regression test to verify failed no-run backfill creation does not leave an orphan Backfill row behind.

@GayathriSrividya GayathriSrividya force-pushed the fix/64534-backfill-create-race branch from 7eec677 to e8be38b Compare June 6, 2026 07:49
@GayathriSrividya GayathriSrividya force-pushed the fix/64534-backfill-create-race branch from e8be38b to c3d697a Compare June 6, 2026 08:20
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.

Make backfill creation robust against scheduler race condition

1 participant