21 lines
524 B
PHP
21 lines
524 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
use App\Jobs\RunHealthChecks;
|
|
|
|
class CollectWoltGuardServices extends Command
|
|
{
|
|
protected $signature = 'woltguard:collect-services';
|
|
protected $description = 'Collect WoltGuard services status synchronously';
|
|
|
|
public function handle(): int
|
|
{
|
|
// synchron ausführen, unabhängig vom Queue-Worker
|
|
RunHealthChecks::dispatchSync();
|
|
$this->info('WoltGuard services collected.');
|
|
return self::SUCCESS;
|
|
}
|
|
}
|