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


##########
airflow/models/dag.py:
##########
@@ -3022,24 +3029,28 @@ class DagContext:
 
     """
 
-    _context_managed_dag: Optional[DAG] = None
-    _previous_context_managed_dags: List[DAG] = []
+    _context_managed_dags: Deque[DAG] = deque()

Review Comment:
   Any particular reason we need a deque here? From what I can tell a plain 
list is enough (with the ordering reversed, i.e. we append to / pop from the 
end and use -1 to access).



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