Michael Sadler
Michael Sadler

Reputation: 35

Airflow: schedule_interval = '@once'

What is the semantic difference between setting airflow's schedule_interval to "@once" vs. None?

If I understand correctly, they both will require manual triggering of the dag in order to run. Is this correct?

Upvotes: 3

Views: 10561

Answers (2)

fancybear
fancybear

Reputation: 119

  • None - Can only be triggered externally either through Airflow GUI or Cloud Functions/AWS Lambda.

  • Once - Runs once automatically when deployed and can be triggered externally either through Airflow GUI or Cloud Functions/AWS Lambda, when needed.

Upvotes: 0

sudo
sudo

Reputation: 775

Only if set to None you have to trigger it manually - it won't be scheduled at all. If you set it to @Once it will run exactly one time (and only one time) - see the airflow docs.

Upvotes: 8

Related Questions