airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ash Berlin-Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (AIRFLOW-3123) Allow nested use of DAG as a context manager
Date Tue, 02 Oct 2018 09:23:00 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ash Berlin-Taylor reopened AIRFLOW-3123:
----------------------------------------

Re-opening so I can assign fixed version. (Please use "Resolved" rather than "Closed" in future
- we can edit Resolved tickets but not closed ones.)

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

Mime
View raw message