sjyangkevin commented on issue #48955:
URL: https://github.com/apache/airflow/issues/48955#issuecomment-2983969886

   From my understanding, you create this Python file and use “{{ dag_id }}” in 
DAG definition. I think the template variables like {{ dag_id }} are only 
available within specific templated fields of operators and tasks, not in the 
DAG definition itself. This is because the DAG ID must be explicitly defined 
when the DAG is created, and template variables are evaluated during runtime, 
not at DAG creation time.


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