You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/08/15 11:28:52 UTC

[GitHub] [airflow] ashb commented on issue #5598: [AIRFLOW-733][AIRFLOW-883] Apply default_args when setting `op.dag = dag` or `dag >> op`

ashb commented on issue #5598: [AIRFLOW-733][AIRFLOW-883] Apply default_args when setting `op.dag = dag` or `dag >> op`
URL: https://github.com/apache/airflow/pull/5598#issuecomment-521609959
 
 
   Maybe with the context manager (`with DAG:`) that is doable now, but I suspect this feature existed to support "task" factories, sort of like this.
   
   ```
   dag = DAG()
   
   for task in generate_tasks():
       task.dag = dag
   ```
   
   

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