Skip to content

[airflow-ctl/v0-1-test] Fix enum names and non-ISO dates in airflowctl dags output (#76354) - #76574

Merged
shahar1 merged 2 commits into
airflow-ctl/v0-1-testfrom
backport-3204b6e-airflow-ctl/v0-1-test
Nov 6, 2026
Merged

shahar1 merged 2 commits into
airflow-ctl/v0-1-testfrom
backport-3204b6e-airflow-ctl/v0-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

dags pause, unpause, drain and next-execution printed
"DagSchedulingState.ACTIVE" and "2024-12-31 23:59:59+00:00" with
-o json, so scripts comparing against the API values never matched,
and the output disagreed with dags get for the same Dag.
(cherry picked from commit 3204b6e)

Co-authored-by: Y-C [email protected]

…l dags output (#76354)

`dags pause`, `unpause`, `drain` and `next-execution` printed
"DagSchedulingState.ACTIVE" and "2024-12-31 23:59:59+00:00" with
`-o json`, so scripts comparing against the API values never matched,
and the output disagreed with `dags get` for the same Dag.
(cherry picked from commit 3204b6e)

Co-authored-by: Y-C <[email protected]>
The cherry-picked test asserts on `scheduling_state`, which `DAGResponse`
does not have on this branch, so it raised KeyError. `allowed_run_types`
is the enum field that `pause` and `unpause` print here, and it printed
"DagRunType.MANUAL" before this fix.

Claude-Session: https://claude.ai/code/session_01BVx6g7kMcPenQEPwEZbPQJ
@shahar1
shahar1 enabled auto-merge (squash) November 6, 2026 06:08
@shahar1
shahar1 merged commit c53a104 into airflow-ctl/v0-1-test Nov 6, 2026
14 checks passed
@shahar1
shahar1 deleted the backport-3204b6e-airflow-ctl/v0-1-test branch November 6, 2026 06:27
shahar1 added a commit to shahar1/airflow that referenced this pull request Nov 7, 2026
…l dags output (apache#76354) (apache#76574)

* [airflow-ctl/v0-1-test] Fix enum names and non-ISO dates in airflowctl dags output (apache#76354)

`dags pause`, `unpause`, `drain` and `next-execution` printed
"DagSchedulingState.ACTIVE" and "2024-12-31 23:59:59+00:00" with
`-o json`, so scripts comparing against the API values never matched,
and the output disagreed with `dags get` for the same Dag.
(cherry picked from commit 3204b6e)

Co-authored-by: Y-C <[email protected]>

* Test the enum output fix against the field this branch has

The cherry-picked test asserts on `scheduling_state`, which `DAGResponse`
does not have on this branch, so it raised KeyError. `allowed_run_types`
is the enum field that `pause` and `unpause` print here, and it printed
"DagRunType.MANUAL" before this fix.

Claude-Session: https://claude.ai/code/session_01BVx6g7kMcPenQEPwEZbPQJ

---------

Co-authored-by: Y-C <[email protected]>
Co-authored-by: Shahar Epstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants