dirrao commented on code in PR #39745:
URL: https://github.com/apache/airflow/pull/39745#discussion_r1611693492
##########
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:
Why are we doing rollback here?
--
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]