henry3260 commented on code in PR #66926:
URL: https://github.com/apache/airflow/pull/66926#discussion_r3426283888


##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -725,6 +727,25 @@ def list(self) -> ProviderCollectionResponse | 
ServerResponseError:
         return super().execute_list(path="providers", 
data_model=ProviderCollectionResponse)
 
 
+class TasksOperations(BaseOperations):
+    """Task operations."""
+
+    def clear(
+        self,
+        dag_id: str,
+        body: ClearTaskInstancesBody,
+    ) -> TaskInstanceCollectionResponse | ServerResponseError:
+        """Clear task instances for a DAG."""

Review Comment:
   ```suggestion
           """Clear task instances for a Dag."""
   ```



##########
airflow-ctl/src/airflowctl/ctl/help_texts.yaml:
##########
@@ -70,6 +70,9 @@ dagrun:
   get: "Retrieve a Dag run by Dag ID and run ID"
   list: "List Dag runs, optionally filtered by state and date range"
 
+tasks:
+  clear: "Clear task instances for a DAG"

Review Comment:
   ```suggestion
     clear: "Clear task instances for a Dag"
   ```



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