Fix: Mailbox Stats über Dovecot mit config/mailpool.php

main v1.0.44
boban 2025-10-26 15:53:40 +01:00
parent 8d5cf8b3c5
commit 0d41b6b658
2 changed files with 22 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -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();