github-actions[bot] opened a new pull request, #67264:
URL: https://github.com/apache/airflow/pull/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]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to