From 935531791515ca111fdbbae281937354bc4f77f5 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 13 Nov 2020 16:45:19 +0200 Subject: [PATCH] When using this library and if another queue driver is used, in class worker when calling parent::demon the script must finish and we need to quit child method. --- src/Worker.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Worker.php b/src/Worker.php index d85a4a3..55b6210 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -50,6 +50,7 @@ public function daemon($connectionName, $queueNames, WorkerOptions $options) if (false == $this->interop) { parent::daemon($connectionName, $this->queueNames, $options); + return; } $context = $this->queue->getQueueInteropContext(); @@ -77,6 +78,7 @@ public function runNextJob($connectionName, $queueNames, WorkerOptions $options) if (false == $this->interop) { parent::daemon($connectionName, $this->queueNames, $options); + return; } $context = $this->queue->getQueueInteropContext();