fix(cloud): refresh local versions.json hourly on every node

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-21 17:18:56 +02:00
co-authored by Claude Opus 5.5
parent 666ae60c2c
commit b1f2abf868
5 changed files with 94 additions and 63 deletions
+5
View File
@@ -51,6 +51,11 @@ class Kernel extends ConsoleKernel
->name('cleanup:ssh-mux')
->hourly()
->when(fn () => config('constants.ssh.mux_enabled') && ! config('constants.coolify.is_windows_docker_desktop'));
// Every cloud node reads its own versions.json, so each node refreshes it (no onOneServer).
$this->scheduleInstance->call(fn () => refresh_versions_file())
->name('versions:refresh-local')
->hourly()
->when(fn () => isCloud());
$this->scheduleInstance->command('cleanup:redis --clear-locks')->daily();
$this->scheduleInstance->call(fn () => app(ScheduledJobDeliveryService::class)->deleteOldOccurrences())
->name('cleanup:scheduled-job-occurrences')