Prab-27 commented on PR #59936:
URL: https://github.com/apache/airflow/pull/59936#issuecomment-3699319051

   If a DAG is already in a paused state and we run` airflowctl 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-MCA90n
 34Ut60n0"}]
   [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-MCA90n
 34Ut60n0"}]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to