vd/vendor/illuminate/queue/Console/RestartCommand.php
2018-11-05 09:26:30 +08:00

38 lines
743 B
PHP

<?php
namespace Illuminate\Queue\Console;
use Illuminate\Console\Command;
use Illuminate\Support\InteractsWithTime;
class RestartCommand extends Command
{
use InteractsWithTime;
/**
* The console command name.
*
* @var string
*/
protected $name = 'queue:restart';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Restart queue worker daemons after their current job';
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->laravel['cache']->forever('illuminate:queue:restart', $this->currentTime());
$this->info('Broadcasting queue restart signal.');
}
}