Skip to content
Advertisement

Read run_id in airflow operator for non templated fields

I am trying to read run_id for DAG in SnowflakeOperator to set a session parameter, query_tag. But it seems like the session parameter is not templated.

JavaScript

How can I reference run_id and use it as an input here?

Advertisement

Answer

You need to make the non-templated field templated.

JavaScript

Then you can use it as:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement