ashb commented on code in PR #74222:
URL: https://github.com/apache/airflow/pull/74222#discussion_r4188246501
##########
airflow-core/src/airflow/api/common/delete_dag.py:
##########
@@ -55,8 +55,10 @@ def delete_dag(dag_id: str, keep_records_in_log: bool =
True, *, session: Sessio
log.info("Deleting Dag: %s", dag_id)
running_tis = session.scalar(
select(models.TaskInstance.state)
- .where(models.TaskInstance.dag_id == dag_id)
- .where(models.TaskInstance.state == TaskInstanceState.RUNNING)
+ .where(
+ models.TaskInstance.dag_id == dag_id,
+ models.TaskInstance.state == TaskInstanceState.RUNNING,
+ )
Review Comment:
Fixed everywhere I could find now.
--
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]