uranusjr commented on code in PR #38949:
URL: https://github.com/apache/airflow/pull/38949#discussion_r1562049749


##########
dev/perf/scheduler_dag_execution_timing.py:
##########
@@ -79,8 +79,7 @@ def change_state(self, key, state, info=None):
         if not run:
             import airflow.models
 
-            # odd `list()` is to work across Airflow versions.
-            run = list(airflow.models.DagRun.find(dag_id=dag_id, 
execution_date=execution_date))[0]
+            run = airflow.models.DagRun.find(dag_id=dag_id, 
execution_date=execution_date)[0]

Review Comment:
   This comment seems to suggest `find` can return something other than a list 
instead…? But that’s four years ago so it could be fine to remove it.



-- 
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]

Reply via email to