1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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.');
- }
- }
|