Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Airflowctl : Update dag_id to be a positional argument for dags pause/unpause command #59936

Merged
jscheffl merged 1 commit intoapache:mainfrom
Prab-27:airflowctl-dag-positional-command
Dec 31, 2025
Merged

Airflowctl : Update dag_id to be a positional argument for dags pause/unpause command #59936
jscheffl merged 1 commit intoapache:mainfrom
Prab-27:airflowctl-dag-positional-command

Conversation

Copy link
Contributor

Prab-27 commented Dec 30, 2025

Now dag_id works as airflowctl dags pause/unpase dag_id
updated tests for the airflowctl dags command

closes : #57634


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Prab-27 requested review from bugraoz93 and potiuk as code owners December 30, 2025 12:50
boring-cyborg bot added the area:airflow-ctl label Dec 30, 2025
Copy link
Contributor Author

Prab-27 commented Dec 30, 2025

If a DAG is already in a paused state and we runairflowctl dags pause dag_id again, it still shows the pause command executed. I believe that if the DAG is already paused, it should instead display that the dag_id is already in a paused state.

I'd love to hear your thoughts -- if you agree, I'll work on implementing that change.

[Breeze:3.10.19] root@c0b5e797ac38:/opt/airflow$ airflowctl dags pause try-one-out
Please enter password for encrypted keyring:
Dag pause successful try-one-out
Further Dag details:
[{"dag_id": "try-one-out", "dag_display_name": "try-one-out", "is_paused": "True", "is_stale": "False", "last_parsed_time": "2025-12-30 13:00:46.441754+00:00", "last_parse_duration": "0.16383485899859807", "last_expired": null, "bundle_name": "dags-folder", "bundle_version": null, "relative_fileloc": "try_one.py", "fileloc": "/files/dags/try_one.py", "description": null, "timetable_summary": "0 0 * * *", "timetable_description": "At 00:00", "tags": [], "max_active_tasks": "16", "max_active_runs": "16", "max_consecutive_failed_dag_runs": "0", "has_task_concurrency_limits": "False", "has_import_errors": "False", "next_dagrun_logical_date": "2025-12-31 00:00:00+00:00", "next_dagrun_data_interval_start": "2025-12-31 00:00:00+00:00", "next_dagrun_data_interval_end": "2025-12-31 00:00:00+00:00", "next_dagrun_run_after": "2025-12-31 00:00:00+00:00", "owners": ["airflow"], "file_token": "eyJidW5kbGVfbmFtZSI6ImRhZ3MtZm9sZGVyIiwicmVsYXRpdmVfZmlsZWxvYyI6InRyeV9vbmUucHkifQ.wIBzliw7lo1e-MCA90n34Ut60n0"}]
[Breeze:3.10.19] root@c0b5e797ac38:/opt/airflow$ airflowctl dags pause try-one-out
Please enter password for encrypted keyring:
Dag pause successful try-one-out
Further Dag details:
[{"dag_id": "try-one-out", "dag_display_name": "try-one-out", "is_paused": "True", "is_stale": "False", "last_parsed_time": "2025-12-30 13:01:47.616372+00:00", "last_parse_duration": "0.22382855299656512", "last_expired": null, "bundle_name": "dags-folder", "bundle_version": null, "relative_fileloc": "try_one.py", "fileloc": "/files/dags/try_one.py", "description": null, "timetable_summary": "0 0 * * *", "timetable_description": "At 00:00", "tags": [], "max_active_tasks": "16", "max_active_runs": "16", "max_consecutive_failed_dag_runs": "0", "has_task_concurrency_limits": "False", "has_import_errors": "False", "next_dagrun_logical_date": "2025-12-31 00:00:00+00:00", "next_dagrun_data_interval_start": "2025-12-31 00:00:00+00:00", "next_dagrun_data_interval_end": "2025-12-31 00:00:00+00:00", "next_dagrun_run_after": "2025-12-31 00:00:00+00:00", "owners": ["airflow"], "file_token": "eyJidW5kbGVfbmFtZSI6ImRhZ3MtZm9sZGVyIiwicmVsYXRpdmVfZmlsZWxvYyI6InRyeV9vbmUucHkifQ.wIBzliw7lo1e-MCA90n34Ut60n0"}]

jscheffl approved these changes Dec 31, 2025
jscheffl merged commit d068dcb into apache:main Dec 31, 2025
70 checks passed
jscheffl mentioned this pull request Jan 1, 2026
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
bugraoz93 mentioned this pull request Jan 9, 2026
24 tasks
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

jscheffl jscheffl approved these changes

bugraoz93 Awaiting requested review from bugraoz93 bugraoz93 is a code owner

potiuk Awaiting requested review from potiuk potiuk is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Make positional not null parameters as a dest paramater for airflowctl

2 participants