Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ComputeClient.get_task_batch URL path #1117

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`)

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
Loading