You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have configured the Symfony bundle to use Redis via php-redis. The queue producer and consumer are working, however when I run the console command php app/console enqueue:consume --setup-broker it seems to poll Redis every few milliseconds causing the PHP script to have about 50% CPU usage and Redis about 20%.
Is there an option to set a timeout to reduce the polling rate and reduce resource usage?
The other solution: Add the third argument to queue consumer which is idle time. It could be a DI parameter with a default value set in the enqueue bundle, but there is a way to overwrite it from the app.
I have configured the Symfony bundle to use Redis via php-redis. The queue producer and consumer are working, however when I run the console command
php app/console enqueue:consume --setup-broker
it seems to poll Redis every few milliseconds causing the PHP script to have about 50% CPU usage and Redis about 20%.Is there an option to set a timeout to reduce the polling rate and reduce resource usage?
The text was updated successfully, but these errors were encountered: