parent
8d5cf8b3c5
commit
0d41b6b658
|
|
@ -0,0 +1,20 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
||||
|
|
@ -9,7 +9,8 @@ Artisan::command('inspire', function () {
|
|||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Schedule::job(RunHealthChecks::class)->everytenSeconds()->withoutOverlapping();
|
||||
Schedule::job(RunHealthChecks::class)->everyMinute()->withoutOverlapping();
|
||||
Schedule::command('woltguard:collect-services')->everyMinute();
|
||||
//Schedule::command('mailwolt:check-updates')->dailyAt('04:10');
|
||||
Schedule::command('mailwolt:check-updates')->everytwoMinutes();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue