diff --git a/pkg/enqueue/Consumption/QueueConsumer.php b/pkg/enqueue/Consumption/QueueConsumer.php index 4e59abcd8..275a1890e 100644 --- a/pkg/enqueue/Consumption/QueueConsumer.php +++ b/pkg/enqueue/Consumption/QueueConsumer.php @@ -171,7 +171,7 @@ public function consume(ExtensionInterface $runtimeExtension = null) while (true) { try { if ($this->psrContext instanceof AmqpContext) { - $callback = function (AmqpMessage $message, AmqpConsumer $consumer) use ($extension, $logger) { + $callback = function (AmqpMessage $message, AmqpConsumer $consumer) use ($extension, $logger, &$context) { $currentProcessor = null; /** @var PsrQueue $queue */