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

Tight loop causes redis worker to consume entire CPU while waiting for messages #651

Open
andreasjansson opened this issue Jun 13, 2022 · 0 comments
Labels
type/bug Something isn't working

Comments

@andreasjansson
Copy link
Member

The loop here takes a full CPU while async polling for messages from Redis: https://github.com/replicate/cog/blob/main/python/cog/server/redis_queue.py#L223-L224

Can we do this with a blocking pop instead?

@andreasjansson andreasjansson added the type/bug Something isn't working label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant