ashb commented on a change in pull request #15382:
URL: https://github.com/apache/airflow/pull/15382#discussion_r640528645
##########
File path: airflow/api_connexion/endpoints/task_instance_endpoint.py
##########
@@ -251,18 +251,8 @@ def post_clear_task_instances(dag_id: str, session=None):
task_instances = dag.clear(get_tis=True, **data)
if not data["dry_run"]:
clear_task_instances(
- task_instances,
- session,
- dag=dag,
- activate_dag_runs=False, # We will set DagRun state later.
+ task_instances, session, dag=dag, dag_run_state=State.RUNNING if
reset_dag_runs else None
)
- if reset_dag_runs:
- dag.set_dag_runs_state(
Review comment:
I'd like to remove it, but this is potentially a breaking change 😢 (who
knows what users might be doing.) so please add it back and make it issue a
DeprecationWarning instead.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]