ephraimbuddy commented on code in PR #39951: URL: https://github.com/apache/airflow/pull/39951#discussion_r1631349690
########## airflow/models/taskinstance.py: ########## @@ -3186,6 +3189,14 @@ def fetch_handle_failure_context( if task and fail_stop: _stop_remaining_tasks(task_instance=ti, session=session) else: + if ti.state == TaskInstanceState.RUNNING: Review Comment: This saves query time checking if the ti has already been recorded -- 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