From 6a766e9019f7ffc97f0e9a71edbbca258d359866 Mon Sep 17 00:00:00 2001 From: DJ Tarazona Date: Tue, 6 Sep 2016 10:13:28 -0400 Subject: [PATCH] Fire / check queue looping event before running daemon (#15290) --- src/Illuminate/Queue/Worker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index ca2893cd3e65..6c595583e251 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -90,7 +90,8 @@ public function daemon($connectionName, $queue, WorkerOptions $options) */ protected function daemonShouldRun() { - return ! $this->manager->isDownForMaintenance(); + return $this->manager->isDownForMaintenance() + ? false : $this->events->until('illuminate.queue.looping') !== false; } /**