update dbqueuemanager to respect handler timeout values
This commit is contained in:
parent
eb5679b029
commit
6467351e32
|
@ -55,7 +55,8 @@ class DBQueueManager extends QueueManager
|
|||
{
|
||||
while (true) {
|
||||
$this->_log(LOG_DEBUG, 'Checking for notices...');
|
||||
$notice = $this->_nextItem($queue, null);
|
||||
$timeout = $handler->timeout();
|
||||
$notice = $this->_nextItem($queue, $timeout);
|
||||
if (empty($notice)) {
|
||||
$this->_log(LOG_DEBUG, 'No notices waiting; idling.');
|
||||
// Nothing in the queue. Do you
|
||||
|
|
Loading…
Reference in New Issue
Block a user