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 2020/12/04 19:08:56 UTC
[GitHub] [airflow] vxtals opened a new issue #12817: Add default conf to DAG definition to use in scheduled runs
vxtals opened a new issue #12817:
URL: https://github.com/apache/airflow/issues/12817
**Description**
When you trigger a DAG run through trigger operator, API or cli you can add parameters as "conf", so you can access them by template interpolation like {{ dag_run.conf['conf1'] }}
If you define a DAG relying on this it never will work when it is executed at schedule time.
**Use case / motivation**
Add a default conf parameter in Dag class so it will be used when create_dagrun is called without a conf defined, as it happens when called by scheduler.
**Related Issues**
I couldn't find any issue related.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [airflow] ashb commented on issue #12817: Add default conf to DAG definition to use in scheduled runs
Posted by GitBox <gi...@apache.org>.
ashb commented on issue #12817:
URL: https://github.com/apache/airflow/issues/12817#issuecomment-875678537
cc @msumit -- perhaps we should think about deprecating/merging params and dagrun.conf in the template -- not sure there is real value in having both.
--
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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #12817: Add default conf to DAG definition to use in scheduled runs
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #12817:
URL: https://github.com/apache/airflow/issues/12817#issuecomment-738963794
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
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:
users@infra.apache.org