Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit 2d2a625

Browse files
committed
fmt
1 parent 11c3246 commit 2d2a625

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

airflow/jobs/scheduler_job.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1582,13 +1582,13 @@ def _create_dag_runs(self, dag_models: Iterable[DagModel], session: Session) ->
15821582
# may find things that have too many runs already, we need to short circuit this
15831583
active_runs_of_dags = dict(
15841584
session.query(DagRun.dag_id, func.count('*'))
1585-
.filter(
1585+
.filter(
15861586
DagRun.dag_id.in_([o.dag_id for o in dag_models]),
15871587
DagRun.state == State.RUNNING, # pylint: disable=comparison-with-callable
15881588
DagRun.external_trigger.is_(False),
1589-
)
1590-
.group_by(DagRun.dag_id)
1591-
.all()
1589+
)
1590+
.group_by(DagRun.dag_id)
1591+
.all()
15921592
)
15931593

15941594
for dag_model in dag_models:
@@ -1603,7 +1603,7 @@ def _create_dag_runs(self, dag_models: Iterable[DagModel], session: Session) ->
16031603
active_runs_of_dag = active_runs_of_dags.get(dag.dag_id, 0)
16041604
if dag.max_active_runs and active_runs_of_dag >= dag.max_active_runs:
16051605
self.log.info(
1606-
"DAG %s is at (or above) max_active_runs (%d of %d), not creating any more runs",
1606+
"create_dag_runs: DAG %s is at (or above) max_active_runs (%d of %d), not creating any more runs",
16071607
dag.dag_id,
16081608
active_runs_of_dag,
16091609
dag.max_active_runs,

0 commit comments

Comments
 (0)