Skip to content

Show a notice when the Calendar view cuts off planned runs - #72101

Open
theJohnnyBrown wants to merge 1 commit into
apache:mainfrom
theJohnnyBrown:calendar-planned-runs-cap-feedback
Open

Show a notice when the Calendar view cuts off planned runs#72101
theJohnnyBrown wants to merge 1 commit into
apache:mainfrom
theJohnnyBrown:calendar-planned-runs-cap-feedback

Conversation

@theJohnnyBrown

Copy link
Copy Markdown
Contributor

Follow-up to #71263, implementing the reviewer's suggestions there: the planned-run cap silently truncates the Calendar for Dags with high-frequency schedules, which reads as the schedule stopping partway through the year.

  • The calendar response now includes planned_runs_capped, set when the planned-run scan hits MAX_PLANNED_RUNS before reaching the year boundary (both the cron fast path and the generic timetable path).
  • The Calendar view shows an info banner when planned cells were cut off: "This Dag has too many planned runs to display; only the earliest are shown."
  • MAX_PLANNED_RUNS is raised from 2000 to 10000, so a full year of hourly runs (8784) fits without truncation; the per-request scan cost stays well under a second even for seconds-resolution crons.

related: #71263


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

Since the planned-run scan was capped at MAX_PLANNED_RUNS, a Dag with a
high-frequency schedule silently stops showing planned cells partway
through the year, which reads as the schedule ending. Surface the cutoff
in the API response and show an info banner in the Calendar view, and
raise the cap from 2000 to 10000 so a full year of hourly runs fits
before the cutoff kicks in.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant