cherkavi commented on a change in pull request #17526:
URL: https://github.com/apache/airflow/pull/17526#discussion_r688712250



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -766,7 +766,17 @@ def _clean_tis_without_dagrun(self, session):
                 self._change_state_for_tis_without_dagrun(
                     old_states=[State.UP_FOR_RETRY], new_state=State.FAILED, 
session=session
                 )
-
+                
+                guard.commit()

Review comment:
       main idea here:
   1) protect "commit" operation
   2) split up code with two seprate actions, update status :
      2.1) mark as FAILED
      2.2) mark as None 




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