Skip to content

[v3-3-test] API: Return 503 when SQLite locks during backfill creation (#67900) - #69659

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-2fb2321-v3-3-test
Jul 13, 2026
Merged

[v3-3-test] API: Return 503 when SQLite locks during backfill creation (#67900)#69659
potiuk merged 1 commit into
v3-3-testfrom
backport-2fb2321-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

SQLite backfill creation via the REST API could return HTTP 500 and
leave an orphan Backfill row when the scheduler and API server contend
for the database, blocking retries with 409. Map lock errors to HTTP 503
with a clear message and clean up partial DagRuns and TaskInstances so
users can retry against a clean slate.
(cherry picked from commit 2fb2321)

Co-authored-by: Lohit Kolluri lohitkolluri@gmail.com
Signed-off-by: Lohit Kolluri lohitkolluri@gmail.com

#67900)

SQLite backfill creation via the REST API could return HTTP 500 and
leave an orphan Backfill row when the scheduler and API server contend
for the database, blocking retries with 409. Map lock errors to HTTP 503
with a clear message and clean up partial DagRuns and TaskInstances so
users can retry against a clean slate.
(cherry picked from commit 2fb2321)

Co-authored-by: Lohit Kolluri <lohitkolluri@gmail.com>
Signed-off-by: Lohit Kolluri <lohitkolluri@gmail.com>
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Jul 9, 2026
@potiuk
potiuk marked this pull request as ready for review July 12, 2026 23:44
@potiuk
potiuk merged commit e707639 into v3-3-test Jul 13, 2026
194 of 195 checks passed
@potiuk
potiuk deleted the backport-2fb2321-v3-3-test branch July 13, 2026 01:24
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jul 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Jul 27, 2026
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
#67900) (#69659)

SQLite backfill creation via the REST API could return HTTP 500 and
leave an orphan Backfill row when the scheduler and API server contend
for the database, blocking retries with 409. Map lock errors to HTTP 503
with a clear message and clean up partial DagRuns and TaskInstances so
users can retry against a clean slate.
(cherry picked from commit 2fb2321)

Signed-off-by: Lohit Kolluri <lohitkolluri@gmail.com>
Co-authored-by: Lohit Kolluri <lohitkolluri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants