update dbqueuemanager to respect handler timeout values
This commit is contained in:
parent
84fb846939
commit
de987a9e63
|
@ -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