FrankYang0529 commented on code in PR #69397:
URL: https://github.com/apache/airflow/pull/69397#discussion_r3551152378
##########
airflow-ctl/src/airflowctl/api/operations.py:
##########
@@ -750,6 +752,45 @@ def list(self) -> ProviderCollectionResponse |
ServerResponseError:
return super().execute_list(path="providers",
data_model=ProviderCollectionResponse)
+class TaskInstancesOperations(BaseOperations):
+ """Task instance operations."""
+
+ def get(
+ self, dag_id: str, dag_run_id: str, task_id: str, map_index: int |
None = None
+ ) -> TaskInstanceResponse | ServerResponseError:
+ """Get a task instance for a Dag run."""
+ path = f"dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}"
Review Comment:
Yes, add `_build_task_instance_path` for this.
--
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]