[
https://issues.apache.org/jira/browse/AIRFLOW-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16794356#comment-16794356
]
ASF subversion and git services commented on AIRFLOW-3123:
----------------------------------------------------------
Commit be5df5c6ff31038e7f25de07b409a65ce616eeff in airflow's branch
refs/heads/v1-10-stable from Newton Le
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=be5df5c ]
[AIRFLOW-3123] Use a stack for DAG context management (#3956)
> Allow nested use of DAG as a context manager
> ---------------------------------------------
>
> Key: AIRFLOW-3123
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3123
> Project: Apache Airflow
> Issue Type: Bug
> Components: DAG
> Reporter: Newton Le
> Assignee: Newton Le
> Priority: Major
> Fix For: 1.10.3
>
>
> DAG context manager fails under some cases with nested contexts:
> {code:python}
> with DAG( ... ) as dag:
> op1 = Operator()
> with dag:
> op2 = Operator()
> op3 = Operator
> {code}
> op3 will not continue to be assigned the original DAG after exiting the
> nested context.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)