Split airflowctl dags state argument into run_id and --logical-date#69915
Merged
Conversation
FrankYang0529
force-pushed
the
airflow-dags-state
branch
from
July 15, 2026 10:50
72be3ef to
6cae126
Compare
1 task
FrankYang0529
marked this pull request as ready for review
July 16, 2026 00:14
FrankYang0529
requested review from
amoghrajesh,
ashb,
bugraoz93,
dheerajturaga,
gopidesupavan,
henry3260,
jason810496 and
potiuk
as code owners
July 16, 2026 00:14
Lee-W
reviewed
Jul 22, 2026
Signed-off-by: PoAn Yang <payang@apache.org>
FrankYang0529
force-pushed
the
airflow-dags-state
branch
from
July 22, 2026 12:53
6cae126 to
52dc407
Compare
Lee-W
approved these changes
Jul 23, 2026
Member
|
@bugraoz93 Since we've not yet released 1.0.0, I think we don't need to worry about breaking change? |
bugraoz93
approved these changes
Jul 23, 2026
Contributor
Exactly @Lee-W, good to go. Thanks for checking! Discussion still needs attention from community for 1.0. We will release 0.1.x versions until we agree on 1.0 maturity |
Contributor
|
Let see CI integration tests and merge :) |
Contributor
Backport successfully created: airflow-ctl/v0-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
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.
Why
airflow dags stateused single fieldlogical_date_or_run_idfor two different values. Theairflowctl dags stateinherited it.logical_date, it spends an extra request trying it as arun_idfirst. That request is bound to 404, and the CLI then uses the list API to retrieve thedag_run. An unknownrun_idhas a similar issue: the 404 is followed by a list call issued only to check that the Dag exists.How
--logical-dateand makerun_idan optional positional. Exactly one of the two is required.run_idgoes straight todag_runs.getand--logical-dategoes todag_runs.list.Verification
uv run --project airflow-ctl pytest airflow-ctl/tests/airflow_ctl/ctl/commands/test_dag_command.py airflow-ctl/tests/airflow_ctl/api/test_operations.pyWas generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.