diff --git a/app/Lib/Tools/BackgroundJobsTool.php b/app/Lib/Tools/BackgroundJobsTool.php index 0e435c865..def9d427a 100644 --- a/app/Lib/Tools/BackgroundJobsTool.php +++ b/app/Lib/Tools/BackgroundJobsTool.php @@ -58,7 +58,8 @@ class BackgroundJobsTool EMAIL_QUEUE = 'email', CACHE_QUEUE = 'cache', PRIO_QUEUE = 'prio', - UPDATE_QUEUE = 'update'; + UPDATE_QUEUE = 'update', + SCHEDULER_QUEUE = 'scheduler'; const VALID_QUEUES = [ self::DEFAULT_QUEUE, @@ -66,6 +67,7 @@ class BackgroundJobsTool self::CACHE_QUEUE, self::PRIO_QUEUE, self::UPDATE_QUEUE, + self::SCHEDULER_QUEUE, ]; const diff --git a/app/View/Elements/healthElements/workers.ctp b/app/View/Elements/healthElements/workers.ctp index 5f19f6b85..ddc6f21c5 100644 --- a/app/View/Elements/healthElements/workers.ctp +++ b/app/View/Elements/healthElements/workers.ctp @@ -18,7 +18,7 @@ $data): - if ($type == 'proc_accessible' or $type == 'controls') continue; + if (!in_array($type, BackgroundJobsTool::VALID_QUEUES)) continue; $queueStatusMessage = __("Issues prevent jobs from being processed. Please resolve them below."); $queueStatus = false; if ($data['ok']) {