Skip to content

Commit

Permalink
Fix ComputeClient.get_task_batch URL path
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmello committed Dec 10, 2024
1 parent e5a4286 commit 8d90855
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.d/20241209_223301_30907815+rjmello.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Fixed
~~~~~

- Fixed an incorrect URL path in ``ComputeClient.get_task_batch``. (:pr:`NUMBER`)

2 changes: 1 addition & 1 deletion src/globus_sdk/_testing/data/compute/v2/get_task_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/globus_sdk/services/compute/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8d90855

Please sign in to comment.