The GitHub Actions job "Check newsfragment PR number" on 
airflow.git/fix/skip-calculate-dagrun-fields-for-paused-dags has failed.
Run started by GitHub user 1fanwang (triggered by 1fanwang).

Head commit for run:
ebdc358e7b86fc6d92ceefb2c222fdb3164a18ff / 1fanwang <[email protected]>
Freeze next_dagrun_* for paused Dags to stop misleading API drift

calculate_dagrun_date_fields runs every parse cycle for every Dag,
including paused ones. For catchup=False timetables that means
next_dagrun_logical_date and next_dagrun_run_after advance one cron
period per cycle while staying strictly before now — visible to
external REST API consumers (CLIs, dashboards, Terraform providers)
even after UI #66552 hid the same value in the web view.

Short-circuit calculate_dagrun_date_fields when self.is_paused is True
so the fields stop drifting. The REST PATCH /dags/{id} (single + bulk)
and the CLI dags unpause path each call a new helper,
recompute_next_dagrun_fields_after_unpause, that re-runs the normal
recompute once when is_paused flips False — preserving the existing
fire-the-missed-interval-immediately semantics without the per-cycle
drift while paused.

Closes #66907

Signed-off-by: 1fanwang <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/25849373419

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to