Skip to content

Conversation

@Prab-27
Copy link
Contributor

@Prab-27 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
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 jscheffl merged commit d068dcb into apache:main Dec 31, 2025
70 checks passed
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
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.

Make positional not null parameters as a dest paramater for airflowctl

2 participants