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:
[email protected]


With regards,
Apache Git Services

Reply via email to