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

Merged queue timeout and result timeout #406

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

Pourliver
Copy link

With recent ARQ changes, it is now possible to raise TimeoutError from diverging values of queues and results timeouts. This aims to give us saner defaults

@aviau
Copy link
Member

aviau commented Mar 25, 2024

Looks good to me....

WDYT @isra17 ?

@aviau
Copy link
Member

aviau commented Mar 25, 2024

Technically there is a short race condition and job.result(timeout=self.options.timeout) should probably be a little bit shorter?

@Pourliver
Copy link
Author

Technically there should be a delta between the two, but I'm not sure by how much realistic scenarios, would 10 or 20 be enough?

@isra17
Copy link
Member

isra17 commented Mar 26, 2024

Technically there should be a delta between the two, but I'm not sure by how much realistic scenarios, would 10 or 20 be enough?

look like the poll delay is 0.5 seconds, so setting the expiration of the job to timeout + 5 should be more than enough

@Pourliver Pourliver merged commit 512855b into Flared:main Mar 26, 2024
1 check passed
@Pourliver Pourliver deleted the maxc/unify_timeouts branch March 26, 2024 18:57
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