LoslegenKostenlos starten

Triggering a pipeline from the CLI

Most of the time, the scheduler runs your Dag for you, but sometimes you need to run it yourself, for a one-off date or a quick reprocess. The daily_sales_load Dag is already active, and the scheduler has produced one scheduled run. You'll trigger a second run from the CLI and compare how Airflow tags each one.

  1. Run airflow dags trigger daily_sales_load --logical-date 2026-04-20 in the terminal to trigger a run for a specific date.
  2. Wait about 30 seconds for the manual run to complete.
  3. Run airflow dags list-runs daily_sales_load to see all runs.

After running airflow dags list-runs, you see two runs. Look at the run_id column. What prefix does your manually triggered run start with?

Diese Übung ist Teil des Kurses

<Kurs>Building Data Pipelines with Airflow</Kurs>
Kurs ansehen

Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten