Skip to content

Commit 59e215a

Browse files
committed
[consumption][amqp] onIdle is never called.
1 parent 705d489 commit 59e215a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/enqueue/Consumption/QueueConsumer.php

+3
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ public function consume(ExtensionInterface $runtimeExtension = null)
204204
}
205205

206206
$this->psrContext->consume($this->receiveTimeout);
207+
208+
usleep($this->idleTimeout * 1000);
209+
$extension->onIdle($context);
207210
} else {
208211
/** @var PsrQueue $queue */
209212
foreach ($this->boundProcessors as list($queue, $processor)) {

0 commit comments

Comments
 (0)