leahecole commented on issue #23129:
URL: https://github.com/apache/airflow/issues/23129#issuecomment-1121281463

   > Yeah. The default_args should not containt tamplateable I think - I think 
maybe we could improve it in the future, but I think it should not be needed. 
Maybe a doc update is needed that you should not use templates in default_args ?
   
   Makes sense. I've been trying to use templated variables everywhere 
`models.Variables.get`  because I know that once upon a time (not sure if still 
true) itw as not great to have `models.Variable.get` outside of the DAG object 
because it would make the call to the DB at parse time to populate it. To make 
code pretty, I just did jinja templating everywhere, but, technically, 
`default_args` is part of the DAG object right? So I don't need to worry about 
that issue in this specific case?


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