IKH

Airflow Variables

In the upcoming video, Ajay will introduce you to the concept of Airflow variables.

So, in the video, you learnt about Airflow variables. 

Let’s take a look at some of the highlights:

  • Variables are key-value stores in Airflow’s metadata database.
  • They are a generic way to store and retrieve arbitrary content or settings within Airflow.
  • Apart from variables, you can also use Jinja templating by making use of reference parameters such as {{ ds }} (for execution date) and {{ run_id }} (the id of the current run). 
  • They are accessible through the Airflow UI (Admin -> Variables). 
  • Sample use of a variable is given below.

In the next segment, you will understand another advanced concept in airflow–XComs.

Additional Reading

Variables: Official documentation on Airflow variables

Report an error