Skip to content

Commit

Permalink
Remove unnecessary list conversion (apache#13407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bijan committed Jan 2, 2021
1 parent a893656 commit 4a84834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/jobs/scheduler_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ def _do_scheduling(self, session) -> int:
guard.commit()
# END: create dagruns

dag_runs = list(DagRun.next_dagruns_to_examine(session))
dag_runs = DagRun.next_dagruns_to_examine(session)

# Bulk fetch the currently active dag runs for the dags we are
# examining, rather than making one query per DagRun
Expand Down

0 comments on commit 4a84834

Please sign in to comment.