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

Implement worker to sleep when no job available #1

Closed
wants to merge 1 commit into from

Conversation

williamrenfrew
Copy link
Member

We are receiving CPU pegged consistently at 100% in pods when running

php artisan rabbitmq:consume

Similar to the core framworks' Worker, this PR implements a sleep-when-no-job condition is met.

PR296 in the upstream had similar CPU issues but the resolution there is more akin to blocking/non-blocking mode.

Once approved we should PR against upstream and point back to there for production use.

@vyuldashev
Copy link

Hi! I applied the same fix based on your PR and released v10.1.3

@Josh-G
Copy link

Josh-G commented Jan 13, 2020

fixed upstream

@Josh-G Josh-G closed this Jan 13, 2020
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