Skip to content

[v3-4-test] Reject non-positive max_active_runs when creating a backfill (#75071) - #75320

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-7d94a66-v3-4-test
Oct 24, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-7d94a66-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

POST /api/v2/backfills accepted max_active_runs of 0 or below and
created the backfill. The scheduler only starts a backfill run while
the number of running runs is below max_active_runs, so with 0 or a
negative value every run stayed queued forever. The dry-run endpoint
shares the same body and accepted it as well.

The legacy airflow backfill create --max-active-runs already rejects
these values with positive_int(allow_zero=False), and the UI backfill
form sets min=1. BackfillPostBody now requires max_active_runs >= 1, so
the API returns 422 instead.
(cherry picked from commit 7d94a66)

Co-authored-by: W. H. Wang [email protected]

…ill (#75071)

POST /api/v2/backfills accepted max_active_runs of 0 or below and
created the backfill. The scheduler only starts a backfill run while
the number of running runs is below max_active_runs, so with 0 or a
negative value every run stayed queued forever. The dry-run endpoint
shares the same body and accepted it as well.

The legacy `airflow backfill create --max-active-runs` already rejects
these values with positive_int(allow_zero=False), and the UI backfill
form sets min=1. BackfillPostBody now requires max_active_runs >= 1, so
the API returns 422 instead.
(cherry picked from commit 7d94a66)

Co-authored-by: W. H. Wang <[email protected]>
@vatsrahul1001
vatsrahul1001 force-pushed the backport-7d94a66-v3-4-test branch from 613d879 to 0abd13f Compare October 24, 2026 13:53
@vatsrahul1001
vatsrahul1001 enabled auto-merge (squash) October 24, 2026 13:53
@vatsrahul1001
vatsrahul1001 merged commit 79e1aea into v3-4-test Oct 24, 2026
128 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-7d94a66-v3-4-test branch October 24, 2026 14:36
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants