2021-10-29 12:53:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
|
use App\Jobs\StartStatJobs as JobsStartStatJobs;
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
2021-12-19 15:57:24 +01:00
|
|
|
/**
|
|
|
|
|
* @codeCoverageIgnore
|
|
|
|
|
*/
|
2021-10-29 12:53:46 +02:00
|
|
|
class StartStatJobs extends Command
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The name and signature of the console command.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $signature = 'stats:collect';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The console command description.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $description = 'Force push the collect stats jobs into the queue (stats)';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Execute the console command.
|
|
|
|
|
*
|
2021-12-19 15:57:24 +01:00
|
|
|
* @return integer
|
2021-10-29 12:53:46 +02:00
|
|
|
*/
|
2023-09-06 17:24:53 +02:00
|
|
|
public function handle(): int
|
2021-10-29 12:53:46 +02:00
|
|
|
{
|
|
|
|
|
\dispatch(new JobsStartStatJobs())->afterResponse();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|