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 behavior of RunWithOptions when wait is set #87

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Oct 2, 2024

Follow-up to #82

This PR brings the Go client in line with the JS client behavior updated by replicate/replicate-javascript#315. Specifically, this updates the code for RunWithOptions to not poll if the WithBlockUntilDone option is passed and the prediction status isn't "starting".

Copy link

@aron aron left a comment

Choose a reason for hiding this comment

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

🤩

@mattt mattt merged commit 1620ec6 into main Oct 2, 2024
3 checks passed
@mattt mattt deleted the mattt/fix-wait branch October 2, 2024 16:31
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.

2 participants