Skip to content

Commit

Permalink
Fire / check queue looping event before running daemon (#15290)
Browse files Browse the repository at this point in the history
  • Loading branch information
djtarazona authored and taylorotwell committed Sep 6, 2016
1 parent d717488 commit 6a766e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 6a766e9

Please sign in to comment.