fix(schedule): prevent duplicate SSL certificate regeneration

Run RegenerateSslCertJob on one server only and add coverage to ensure scheduled production jobs use onOneServer.
This commit is contained in:
Andras Bacsai
2026-05-21 19:19:43 +02:00
parent 0c7fcffa01
commit b124397613
2 changed files with 39 additions and 1 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class Kernel extends ConsoleKernel
// Scheduled Jobs (Backups & Tasks)
$this->scheduleInstance->job(new ScheduledJobManager)->everyMinute()->onOneServer();
$this->scheduleInstance->job(new RegenerateSslCertJob)->twiceDaily();
$this->scheduleInstance->job(new RegenerateSslCertJob)->twiceDaily()->onOneServer();
$this->scheduleInstance->job(new CheckTraefikVersionJob)->weekly()->sundays()->at('00:00')->timezone($this->instanceTimezone)->onOneServer();