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 2022/06/05 21:41:20 UTC

[GitHub] [airflow] casassg commented on pull request #10587: Add @dag decorator

casassg commented on PR #10587:
URL: https://github.com/apache/airflow/pull/10587#issuecomment-1146888251

   Guessing you are referring why not @dag decorator directly creates the instance for the DAG? The reason was mostly to stick to pythonic usage patterns. A decorator in python extends functionality but it shouldn't have side effects unless function is called. Separately also allowed for  making user explicitly declare function arg values which are then used as default DagParams.
   
   Would be curious on what alternative would we want to consider?


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org