Skip to content

Commit

Permalink
Merge pull request #265 from php-enqueue/consumption-amqp-on-idle-not…
Browse files Browse the repository at this point in the history
…-called

[consumption][amqp] onIdle is never called.
  • Loading branch information
makasim committed Nov 11, 2017
2 parents 705d489 + 59e215a commit 3f0e924
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/enqueue/Consumption/QueueConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ public function consume(ExtensionInterface $runtimeExtension = null)
}

$this->psrContext->consume($this->receiveTimeout);

usleep($this->idleTimeout * 1000);
$extension->onIdle($context);
} else {
/** @var PsrQueue $queue */
foreach ($this->boundProcessors as list($queue, $processor)) {
Expand Down

0 comments on commit 3f0e924

Please sign in to comment.