Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Jun 9, 2023

The predictions.create function can pass a wait option to poll for changes automatically. Currently, the first predictions.get request to query the status of the prediction happens immediately after the initial response, before the prediction is likely to be processed. This PR introduces an initial delay of the configured wait interval (250ms by default).

@mattt mattt force-pushed the mattt/sleep-after-create-before-polling branch from cdf935a to f726499 Compare June 9, 2023 13:23
@mattt mattt force-pushed the mattt/sleep-after-create-before-polling branch from f726499 to c286c8a Compare June 9, 2023 13:28
@mattt mattt requested a review from anotherjesse June 9, 2023 13:29
@mattt mattt marked this pull request as draft June 9, 2023 13:31
@mattt mattt marked this pull request as ready for review June 9, 2023 13:35
@anotherjesse
Copy link

lgtm!

@mattt mattt enabled auto-merge (squash) June 9, 2023 13:39
@mattt mattt merged commit 9f9d09f into main Jun 9, 2023
@mattt mattt deleted the mattt/sleep-after-create-before-polling branch June 9, 2023 13:40
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