diff --git a/changelog.d/20241209_223301_30907815+rjmello.rst b/changelog.d/20241209_223301_30907815+rjmello.rst new file mode 100644 index 000000000..015a4ef71 --- /dev/null +++ b/changelog.d/20241209_223301_30907815+rjmello.rst @@ -0,0 +1,5 @@ +Fixed +~~~~~ + +- Fixed an incorrect URL path in ``ComputeClient.get_task_batch``. (:pr:`NUMBER`) + diff --git a/src/globus_sdk/_testing/data/compute/v2/get_task_batch.py b/src/globus_sdk/_testing/data/compute/v2/get_task_batch.py index 28147688d..451c2e8ba 100644 --- a/src/globus_sdk/_testing/data/compute/v2/get_task_batch.py +++ b/src/globus_sdk/_testing/data/compute/v2/get_task_batch.py @@ -13,7 +13,7 @@ metadata={"task_id": TASK_ID}, default=RegisteredResponse( service="compute", - path="/v2/tasks/batch", + path="/v2/batch_status", method="POST", json=TASK_BATCH_DOC, # Ensure task_ids is a list diff --git a/src/globus_sdk/services/compute/client.py b/src/globus_sdk/services/compute/client.py index e16e90d46..01386853e 100644 --- a/src/globus_sdk/services/compute/client.py +++ b/src/globus_sdk/services/compute/client.py @@ -221,7 +221,7 @@ def get_task_batch( :ref: Root/operation/get_batch_status_v2_batch_status_post """ task_ids = list(utils.safe_strseq_iter(task_ids)) - return self.post("/v2/tasks/batch", data={"task_ids": task_ids}) + return self.post("/v2/batch_status", data={"task_ids": task_ids}) def get_task_group(self, task_group_id: UUIDLike) -> GlobusHTTPResponse: """Get a list of task IDs associated with a task group.