airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] KimchaC removed a comment on issue #4071: [AIRFLOW-3237] Refactor example DAGs
Date Mon, 22 Oct 2018 18:38:24 GMT
KimchaC removed a comment on issue #4071: [AIRFLOW-3237] Refactor example DAGs
URL: https://github.com/apache/incubator-airflow/pull/4071#issuecomment-431793039
 
 
   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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message