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

Timeout for synchronous prediction #32

Open
Doerge opened this issue May 18, 2024 · 0 comments
Open

Timeout for synchronous prediction #32

Doerge opened this issue May 18, 2024 · 0 comments

Comments

@Doerge
Copy link

Doerge commented May 18, 2024

Sometimes models get's stuck in kind of infinite loops, taking way longer than normally.
It would be great to have the following API:

ReplicateAI.run(..., timeout: :timer.minutes(2))

that would:

  • Submit a request.
  • Wait and check for a response.
  • Cancel the prediction if the timeout is reached, and return a timeout error.
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

No branches or pull requests

1 participant