kaxil commented on PR #23592:
URL: https://github.com/apache/airflow/pull/23592#issuecomment-1121358430

   >Tying registration of DAGs to with is perhaps a bit confusing in this sense 
– also, you can use with on a particular dag instance multiple times!
   
   @malthe Is it the param name that is confusing? I do not understand I follow 
what you are saying. The use-case for this PR is that we don't need to 
needlessly do a `with DAG(..) as dag` as there is no need to have the `as dag` 
in it unless someone wants to actually use the `dag` variable itself
   
   >What about DAGs declared in functions?
   Isn't it the same behaviour as the one with `with DAG(..) as 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to