Steve Greenberg created AIRFLOW-3717:
----------------------------------------
Summary: Refactor sample DAGs to use context manager
Key: AIRFLOW-3717
URL: https://issues.apache.org/jira/browse/AIRFLOW-3717
Project: Apache Airflow
Issue Type: Bug
Reporter: Steve Greenberg
Tutorial code says:
```
import airflow
from airflow import DAG
dag = DAG(
...
```
The context manager saves users the need to pass the dag parameter to each
operator.
So we should encourage:
```
from airflow import models
with models.DAG(
...
```
instead.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)