KimchaC removed a comment on issue #4071: [AIRFLOW-3237] Refactor example DAGs
URL: 
https://github.com/apache/incubator-airflow/pull/4071#issuecomment-431792918
 
 
   Consider also changing the code to use the with context manager so that you 
don't have to repeat the dag=dag parameter on each task:
   ```
   dag = DAG(
                'my_dag',
                start_date=datetime(2016, 1, 1))
   with dag:
       op = DummyOperator('op')
   
   op.dag is dag # True

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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