You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/10 06:22:37 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #17526: remove redundant commit

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



##########
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:
       This should be outside of this try block.




-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org