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 bug with wait parameter in replicate.run() #363

Merged
merged 6 commits into from
Oct 4, 2024
Merged

Conversation

aron
Copy link
Contributor

@aron aron commented Oct 4, 2024

This PR fixes an issue with replicate.run() where it would fallback to polling irregardless of the wait parameter. We now skip the waiting if it looks like we have a prediction with output back.

There are a whole bunch of issues with the vcr library we're using at the moment. I've got it working but I don't think the fixtures are in an ideal state.

  1. The vcr recording mode doesn't work with asyncio, so you need to generate the fixtures using the sync api. Commenting out all of the async & await syntax. Then the test will run just fine without.
  2. The path argument passed to vcr() decorator is not respected while recording. Apparently it does work if you rename the generated file, but I've not tried this yet.

@aron aron merged commit 08ee31a into main Oct 4, 2024
7 checks passed
@aron aron deleted the test-blocking-interface branch October 4, 2024 18:59
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.

1 participant