The GitHub Actions job "Tests (AMD)" on airflow.git/backport-315d159-v3-2-test 
has succeeded.
Run started by GitHub user kaxil (triggered by kaxil).

Head commit for run:
bc66c1474b9cbad59473d17e11c14161eed28487 / Arthur <[email protected]>
[v3-2-test] Fix deadlock in ti_update_state caused by FOR UPDATE locking 
dag_run (#67246)

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/26199740324

With regards,
GitHub Actions via GitBox


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

Reply via email to