You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Iuliia Volkova (JIRA)" <ji...@apache.org> on 2018/10/02 07:36:00 UTC

[jira] [Commented] (AIRFLOW-3123) Allow nested use of DAG as a context manager

    [ https://issues.apache.org/jira/browse/AIRFLOW-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635103#comment-16635103 ] 

Iuliia Volkova commented on AIRFLOW-3123:
-----------------------------------------

[~newtonle], [~ashb], please don't forget to close the issue, PR was merged. 

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