This is an automated email from the ASF dual-hosted git repository.

henry3260 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 4cab3cf055c [AIP-94] Mark dags clear as migrated to airflowctl (#74384)
4cab3cf055c is described below

commit 4cab3cf055c3c903bdab1ef4107a44fae7532467
Author: Yuseok Jo <[email protected]>
AuthorDate: Wed Oct 7 20:12:09 2026 +0900

    [AIP-94] Mark dags clear as migrated to airflowctl (#74384)
---
 airflow-core/src/airflow/cli/commands/dag_command.py              | 1 +
 airflow-core/tests/unit/cli/commands/test_command_deprecations.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/airflow-core/src/airflow/cli/commands/dag_command.py 
b/airflow-core/src/airflow/cli/commands/dag_command.py
index 1f96179bfbb..0ac49441341 100644
--- a/airflow-core/src/airflow/cli/commands/dag_command.py
+++ b/airflow-core/src/airflow/cli/commands/dag_command.py
@@ -129,6 +129,7 @@ def dag_delete(args) -> None:
         print("Cancelled")
 
 
+@deprecated_for_airflowctl("airflowctl dags clear")
 @cli_utils.action_cli
 @providers_configuration_loaded
 @provide_session
diff --git a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py 
b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py
index bcb2d7bf01f..6eb293880bd 100644
--- a/airflow-core/tests/unit/cli/commands/test_command_deprecations.py
+++ b/airflow-core/tests/unit/cli/commands/test_command_deprecations.py
@@ -54,6 +54,7 @@ MIGRATED_CLI_COMMANDS = [
     (connection_command.create_default_connections, "airflowctl connections 
create-defaults"),
     (dag_command.dag_trigger, "airflowctl dags trigger"),
     (dag_command.dag_delete, "airflowctl dags delete"),
+    (dag_command.dag_clear, "airflowctl dags clear"),
     (dag_command.dag_list_dags, "airflowctl dags list"),
     (dag_command.dag_details, "airflowctl dags get-details"),
     (dag_command.dag_list_import_errors, "airflowctl dags list-import-errors"),

Reply via email to