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 see that the dequeue duration is hardcoded to 5 seconds. This time cant be overridden anywhere. With such a short long poll wait we get lots of logs and we are only running 5 different job workers.
Would it make sense to extend the Consumer class allowing another options value to be added.
// Process queue of messages
$this->getConsumer($app)->consume($queue, [
'stop-when-empty' => false,
'duration' => 30
]);
The Consumer class can then be updated to accept this new option as pass it to the $queue->dequeue() method.
Thank you
Guy
The text was updated successfully, but these errors were encountered:
I see that the
dequeue
duration is hardcoded to 5 seconds. This time cant be overridden anywhere. With such a short long poll wait we get lots of logs and we are only running 5 different job workers.Would it make sense to extend the Consumer class allowing another
options
value to be added.The
Consumer
class can then be updated to accept this new option as pass it to the$queue->dequeue()
method.Thank you
Guy
The text was updated successfully, but these errors were encountered: