Skip to content

[AIP-94] Mark dags state and next-execution CLI commands as migrated to airflowctl - #69305

Merged
henry3260 merged 1 commit into
apache:mainfrom
YAshhh29:mark-dags-state-next-execution-migrated
Jul 23, 2026
Merged

[AIP-94] Mark dags state and next-execution CLI commands as migrated to airflowctl#69305
henry3260 merged 1 commit into
apache:mainfrom
YAshhh29:mark-dags-state-next-execution-migrated

Conversation

@YAshhh29

@YAshhh29 YAshhh29 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Add the @deprecated_for_airflowctl marker decorator to two dags CLI
commands whose airflowctl equivalents already exist:

  • dags stateairflowctl dags state
  • dags next-executionairflowctl dags next-execution

Both airflowctl commands are already implemented and registered in
airflow-ctl, so functional parity is met. This follows the same
marker-only direction as #68932 (variables), #68958 (config), and
#68650 (dags pause/unpause).

related: #68402

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — verified both replacement strings against the airflowctl registry (dags state / dags next-execution); no-op marker, no drift.

One thing before this can merge: the branch currently has conflicts with main (mergeable: dirty). Please rebase on the latest main and resolve the conflict.

@YAshhh29
YAshhh29 force-pushed the mark-dags-state-next-execution-migrated branch from 0c91649 to 3485fef Compare July 4, 2026 21:16
@YAshhh29

YAshhh29 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks a lot for the review, @potiuk!

Rebased on the latest main and resolved the conflict in test_command_deprecations.py — kept both dag_list_import_errors from #68602 and the two new entries (dag_state, dag_next_execution). The diff is still the same 4 lines added.

Also, since this is one of my initial contributions to Airflow, I'd love any feedback on things I can improve - whether that's PR structure, commit message style, testing approach, or anything else. Happy to iterate.

@YAshhh29
YAshhh29 force-pushed the mark-dags-state-next-execution-migrated branch from 3485fef to ad6ce5c Compare July 6, 2026 11:45
@YAshhh29

YAshhh29 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Rebased again to pick up the newer entries from #68972 (connections) and #68650 (dags pause/unpause/list-dag-runs). No functional change on my side — still the same 2 lines in dag_command.py + 2 lines in test_command_deprecations.py.

@YAshhh29

Copy link
Copy Markdown
Contributor Author

Gentle bump — this has been approved and green for a week. Happy to rebase again if it helps.

@henry3260 henry3260 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate your contribution!

@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jul 15, 2026
@YAshhh29
YAshhh29 force-pushed the mark-dags-state-next-execution-migrated branch from f72f432 to 25d4e7d Compare July 23, 2026 15:27
@henry3260 henry3260 added the backport-to-airflow-ctl-v0-1-test Backport to airflow-ctl/v0-1-test label Jul 23, 2026
@henry3260
henry3260 merged commit 5628e83 into apache:main Jul 23, 2026
72 of 73 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: airflow-ctl-v0-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
airflow-ctl-v0-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 5628e83 airflow-ctl-v0-1-test

This should apply the commit to the airflow-ctl-v0-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

@henry3260 henry3260 added backport-to-v3-3-test Backport to v3-3-test and removed backport-to-airflow-ctl-v0-1-test Backport to airflow-ctl/v0-1-test labels Jul 23, 2026
henry3260 added a commit that referenced this pull request Jul 23, 2026
…wctl (#69305) (#70311)

(cherry picked from commit 5628e83)

Co-authored-by: Yash jain <145355459+YAshhh29@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI backport-to-v3-3-test Backport to v3-3-test ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants