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

Limit worker queue size #226

Merged
merged 3 commits into from
Feb 18, 2025
Merged

Conversation

stchris
Copy link
Contributor

@stchris stchris commented Feb 18, 2025

This fixes an issue where long-running tasks could get assigned to a worker which would start the work but then also accept other tasks before the work is done.

Most of the time it makes sense for a worker to accept one message at a time, except for deployments with specialized workers, like an index-worker which might have a higher prefetch count. This is why we set the local_queue maxsize to the maximum of the prefetch count for that given worker.

@stchris stchris merged commit 821bbc0 into release/1.24.0 Feb 18, 2025
1 check passed
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