VladimirYushkevich commented on code in PR #39745: URL: https://github.com/apache/airflow/pull/39745#discussion_r1611708407
########## airflow/models/taskinstance.py: ########## @@ -3476,8 +3476,13 @@ def _schedule_downstream_tasks( run_id=ti.run_id, ), session=session, - nowait=True, - ).one() + skip_locked=True, + ).one_or_none() + + if not dag_run: + cls.logger().info("Skip locked rows, rollback") + session.rollback() Review Comment: just a [similar](https://github.com/apache/airflow/blob/61e90704c6794e8554d17a8a94a6e3f42f304767/airflow/models/taskinstance.py#L3531) pattern used in this method on error. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org