Skip to content

Commit af533ba

Browse files
authored
Merge pull request #1117 from rjmello/fix-compute-client-batch-status-url
Fix `ComputeClient.get_task_batch` URL path
2 parents e5a4286 + 8d90855 commit af533ba

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fixed
2+
~~~~~
3+
4+
- Fixed an incorrect URL path in ``ComputeClient.get_task_batch``. (:pr:`NUMBER`)
5+

src/globus_sdk/_testing/data/compute/v2/get_task_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
metadata={"task_id": TASK_ID},
1414
default=RegisteredResponse(
1515
service="compute",
16-
path="/v2/tasks/batch",
16+
path="/v2/batch_status",
1717
method="POST",
1818
json=TASK_BATCH_DOC,
1919
# Ensure task_ids is a list

src/globus_sdk/services/compute/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def get_task_batch(
221221
:ref: Root/operation/get_batch_status_v2_batch_status_post
222222
"""
223223
task_ids = list(utils.safe_strseq_iter(task_ids))
224-
return self.post("/v2/tasks/batch", data={"task_ids": task_ids})
224+
return self.post("/v2/batch_status", data={"task_ids": task_ids})
225225

226226
def get_task_group(self, task_group_id: UUIDLike) -> GlobusHTTPResponse:
227227
"""Get a list of task IDs associated with a task group.

0 commit comments

Comments
 (0)