Skip to content

canvod.airflow API reference

Package

canvod-airflow: Airflow DAG definitions for canvodpy GNSS-T pipelines.

See daily_processing.py (one daily DAG per site) and backfill.py (manual date-range backfill DAG). No pipeline logic lives here; every task wraps a stateless function from canvodpy.workflows.tasks. sensors.py holds the sensor gates, which are orchestration.

daily_processing.py and backfill.py import airflow at module level (apache-airflow is a dependency of this package), since these modules only ever run inside an Airflow scheduler process. canvodpy-side config/task imports are deferred inside each DAG-construction function instead, so a missing or misconfigured canvodpy config doesn't crash DAG parsing.

The DAG modules are documented by hand

daily_processing.py and backfill.py import airflow at module level, which is required to build the TaskFlow DAGs, so mkdocstrings cannot import them in an environment without Airflow. Their public interface is described below by hand instead.

daily_processing

One factory builds the daily DAG of a site. Importing the module builds one DAG for every site in canvodpy's settings file.

create_daily_dag(site_name: str, precise_ephemeris: bool)

Builds the daily DAG of site_name, scheduled daily. Chain: validate_dirs → wait_for_data → (wait_for_sp3) → process_day → validate_ingest → calculate_vod.

When precise_ephemeris is true, the DAG also waits for the SP3/CLK products before it processes the day. agency_ephemeris, its old name, works until the next major version and warns.

backfill

canvod_backfill

A manually triggered DAG that accepts site, start_date, and end_date (YYYYDDD format) as Airflow parameters. It expands the date range into one t_process_day task per date. The tasks run with max_active_tis_per_dagrun=1.

See the Overview for the usage examples.