[airflow-ctl/v0-1-test] Fix airflowctl backfill pause/unpause/cancel always failing with 405 (#73282) - #73293
Merged
henry3260 merged 1 commit intoSep 17, 2026
Conversation
…always failing with 405 (apache#73282) The API server registers these three backfill routes as PUT only, so every invocation was rejected before reaching the handler. The commands have never worked since the routes were introduced in the AIP-84 migration, which means an operator cannot stop a backfill that is consuming the cluster. The three tests covering them asserted only the request path, so the mock transport accepted any verb and kept the mismatch green all along. Co-authored-by: Eason09053360 <185830721+Eason09053360@users.noreply.github.com> (cherry picked from commit c4ab0c3)
henry3260
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
September 17, 2026 19:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Manual backport of #73282 to
airflow-ctl/v0-1-test— the automated backport failed with a conflict.The API server registers the backfill
pause/unpause/cancelroutes asPUT, but the client sentPOST, so all three CLI commands returned405 Method Not Allowed. An operator could not stop a running backfill from the CLI.Conflict resolution: this branch still wraps each call in
try/except ServerResponseError, whichmainhas since removed. The branch's structure is kept as-is; onlyclient.post→client.putis applied (three call sites). The test changes (assert request.method == "PUT") applied cleanly.Verified with
breeze run pytest airflow-ctl/tests/airflow_ctl/api/test_operations.py::TestBackfillOperations— 7 passed.Was generative AI tooling used to co-author this PR?