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

Add ComputeClient methods to submit & get tasks #1094

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

rjmello
Copy link
Member

@rjmello rjmello commented Oct 25, 2024

  • Added the .get_task(), .get_task_batch(), .get_task_group(), and .submit() methods to the ComputeClientV2 class.
  • Added the .submit() method to the ComputeClientV3 class.

📚 Documentation preview 📚: https://globus-sdk-python--1094.org.readthedocs.build/en/1094/

Copy link
Member

@sirosen sirosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but I want to confirm with the team that get_task_batch looks good to us. Since we don't yet have consistency about always passing a payload object vs passing unpacked fields, I just want to confirm that we're comfortable adding more APIs of both styles (I am, as I think consistency of this sort is only valuable if we can get it library-wide, which will require a major effort with some clear direction).

src/globus_sdk/_testing/data/compute/submit.py Outdated Show resolved Hide resolved
tests/functional/services/compute/test_get_task_batch.py Outdated Show resolved Hide resolved
src/globus_sdk/services/compute/client.py Show resolved Hide resolved
@rjmello rjmello marked this pull request as draft October 29, 2024 21:36
- Added the `.get_task()`, `.get_task_batch()`, `.get_task_group()`, and
`.submit()` methods to the `ComputeClientV2` class.
- Added the `.submit()` method to the `ComputeClientV3` class.
@rjmello rjmello marked this pull request as ready for review November 8, 2024 16:52
@kurtmckee kurtmckee merged commit 5270f0e into globus:main Nov 8, 2024
7 checks passed
@rjmello rjmello deleted the compute-client-task-methods branch November 8, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants