From 8ea93e005efb82b2b41640672bf194314ea3f70b Mon Sep 17 00:00:00 2001 From: dena Date: Wed, 16 Apr 2025 15:44:58 +0200 Subject: [PATCH] scheduler safeguard --- app/Console/Kernel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 65e4f00a..dbd94aa6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -29,6 +29,9 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule): void { + // do not schedule anything if this container is not "the scheduler" + if (env('CONTAINER_ROLE') !== 'scheduler') { return; } + // Make sure that the DB and QS pools are always populated somewhat. // This will create at most 1 new entry for each per minute... // There are also jobs currently scheduled in Controllers that use up resources from these pools