Skip to content

Commit db15dd8

Browse files
authored
Merge pull request #14 from php-enqueue/fix-queue-consumer-timeout
[consumption][bug] Receive timeout is in milliseconds. Set it to 5000.…
2 parents 26df85b + 9eabb7c commit db15dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/enqueue/Consumption/QueueConsumer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected function doConsume(ExtensionInterface $extension, Context $context)
190190
throw new ConsumptionInterruptedException();
191191
}
192192

193-
if ($message = $consumer->receive($timeout = 1)) {
193+
if ($message = $consumer->receive($timeout = 5000)) {
194194
$logger->info('Message received');
195195
$logger->debug('Headers: {headers}', ['headers' => new VarExport($message->getHeaders())]);
196196
$logger->debug('Properties: {properties}', ['properties' => new VarExport($message->getProperties())]);

0 commit comments

Comments
 (0)