justinpakzad commented on code in PR #66318:
URL: https://github.com/apache/airflow/pull/66318#discussion_r3269834277
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -720,6 +724,60 @@ def list(self) -> ProviderCollectionResponse |
ServerResponseError:
return super().execute_list(path="providers",
data_model=ProviderCollectionResponse)
+class TasksOperations(BaseOperations):
+ """Tasks operations."""
+
+ def list(self, dag_id: str) -> TaskCollectionResponse |
ServerResponseError:
+ """List tasks for a DAG."""
+ try:
+ self.response = self.client.get(f"/dags/{dag_id}/tasks")
Review Comment:
Any reason we aren't using `super().execute_list` here as well?
--
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]