FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

passing the sleep option to the worker to prevent the process goes ra… · JavaDevl/framework@c2073e8 · GitHub

Commit c2073e8

Browse files
committed
passing the sleep option to the worker to prevent the process goes rampage when in maintenance mode
1 parent a5bd2e8 commit c2073e8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/Illuminate/Queue/Console/WorkCommand.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function __construct(Worker $worker)
4949
*/
5050
public function fire()
5151
{
52-
if ($this->downForMaintenance() && ! $this->option('daemon')) return;
52+
if ($this->downForMaintenance() && ! $this->option('daemon'))
53+
{
54+
$this->worker->sleep($this->option('sleep'));
55+
return;
56+
}
5357

5458
$queue = $this->option('queue');
5559

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL