Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9eabb7c

Browse files
committed
[consumption][bug] Receive timeout is in miliseconds. Set it to 5000. Five sec.
1 parent 26df85b commit 9eabb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/enqueue/Consumption/QueueConsumer.php

Lines changed: 1 addition & 1 deletion
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)