The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/66726-backfill-sqlite-lock-error has failed.
Run started by GitHub user lohitkolluri (triggered by potiuk).

Head commit for run:
67d50e15c934b61d7cc0eb23c3976ed7c4dda9d1 / Lohit Kolluri 
<[email protected]>
fix(backfill): Handle SQLite lock errors with atomic creation and graceful 503

Catch OperationalError from _create_backfill/_do_dry_run and return
HTTP 503 with a clear message when SQLite reports 'database is locked'.
Avoids the 500 Internal Server Error that previously masked this condition.

- SQLite lock detection in is_lock_not_available_error() and
  with_row_locks() bailout for SQLite dialect
- Lock DagModel row (FOR UPDATE on PG/MySQL) before num_active check
  to serialize concurrent backfill creation for the same dag
- session.flush() instead of session.commit() for ID generation;
  outer context commits atomically, preventing orphaned backfills
- Test coverage for lock error paths in create and dry_run endpoints

Closes: #66726

Signed-off-by: Lohit Kolluri <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/27233624546

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to