pierrejeambrun commented on code in PR #55660:
URL: https://github.com/apache/airflow/pull/55660#discussion_r2382433185
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -215,12 +215,22 @@ def clear_task_instances(
"""
task_instance_ids: list[str] = []
from airflow.models.dagbag import DBDagBag
+ from fastapi import HTTPException
scheduler_dagbag = DBDagBag(load_op_links=False)
+ isRunning = False
for ti in tis:
task_instance_ids.append(ti.id)
ti.prepare_db_for_next_try(session)
+ if hasattr(ti, 'is_running_message') and ti.is_running_message == True:
+ isRunning = True
Review Comment:
I agree, also the `isRunning` should be `is_running`
--
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]