The GitHub Actions job "Tests (AMD)" on airflow.git/v3-2-test has failed.
Run started by GitHub user vatsrahul1001 (triggered by vatsrahul1001).

Head commit for run:
ea3657f240ec976a52394d3d3a0ea2f64dc5c17b / github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
[v3-2-test] Fix deadlock in ti_update_state caused by FOR UPDATE locking 
dag_run (#67246) (#67264)

session.get(TI, id, with_for_update=True) emits a SELECT that joins
dag_run (via the lazy="joined" relationship) and applies FOR UPDATE to
both tables. Under concurrent task completions this serialises all
workers on the same dag_run row, producing deadlock cycles with the
scheduler's trigger-rule dependency checks.

Three other callsites in this file already use with_for_update={"of": TI}
for exactly this reason. Apply the same fix to the two remaining callsites
in _create_ti_state_update_query_and_update_state and its error-recovery
path.
(cherry picked from commit 315d1591644629cca400e723769ba01408b343f6)

Co-authored-by: Arthur <[email protected]>

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

With regards,
GitHub Actions via GitBox


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

Reply via email to