ashb commented on issue #12387:
URL: https://github.com/apache/airflow/issues/12387#issuecomment-731393299


   Better yet: don't execute expensive code at the top level of a DAG file -- 
it has to be run to parse the dag, which slows things down.
   
   
   In 2.0 it slows things down a lot less than it used to, but it would still 
slow down every task that executes in this dag unnecessarily.


----------------------------------------------------------------
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]


Reply via email to