parkhojeong commented on code in PR #66218:
URL: https://github.com/apache/airflow/pull/66218#discussion_r3176404049


##########
airflow-ctl/src/airflowctl/ctl/cli_config.py:
##########
@@ -944,6 +944,66 @@ def merge_commands(
     ),
 )
 
+
+TASKS_COMMANDS = (
+    ActionCommand(
+        name="clear",
+        help="Clear task instances for a DAG run",
+        func=lazy_load_command("airflowctl.ctl.commands.task_command.clear"),
+        args=(
+            ARG_DAG_ID,
+            ARG_OUTPUT,
+            ARG_DAG_RUN_ID,
+            Arg(
+                flags=("--task-ids",),
+                help="Comma-separated list of task IDs to clear",
+            ),
+            Arg(
+                flags=("--dry-run",),
+                action="store_true",
+                help="Perform a dry run (no actual changes)",
+            ),
+            Arg(
+                flags=("--only-failed",),
+                action="store_true",
+                default=True,
+                help="Only clear failed task instances",
+            ),
+            Arg(
+                flags=("--only-running",),
+                action="store_true",
+                help="Only clear running task instances",
+            ),
+            Arg(
+                flags=("--upstream",),
+                action="store_true",
+                help="Include upstream tasks",
+            ),
+            Arg(
+                flags=("--downstream",),
+                action="store_true",
+                help="Include downstream tasks",
+            ),
+        ),
+    ),
+    ActionCommand(
+        name="states-for-dag-run",
+        help="Get task instance states for a DAG run",

Review Comment:
   ```suggestion
           help="Get task instance states for a Dag run",
   ```



##########
airflow-ctl/src/airflowctl/ctl/cli_config.py:
##########
@@ -944,6 +944,66 @@ def merge_commands(
     ),
 )
 
+
+TASKS_COMMANDS = (
+    ActionCommand(
+        name="clear",
+        help="Clear task instances for a DAG run",

Review Comment:
   ```suggestion
           help="Clear task instances for a Dag run",
   ```
   



-- 
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