newtonle commented on issue #3956: [AIRFLOW-3123] Allow nested use of  DAG as a 
context manager
URL: https://github.com/apache/airflow/pull/3956#issuecomment-481837428
 
 
   > @newtonle curious to know why you'd need to nest this context manager?
   
   We've built some constructs that can build DAGs, often using the DAG context 
manager. The problem is that user can use these constructs within their own DAG 
definition files, often inside another context manager. The problem with having 
only the last context manager saved is that entering a second one will lose 
history of the first. The stack-based approach makes this more robust with 
minimal additional overhead.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to