mirror of https://github.com/MISP/MISP
Merge pull request #8067 from righel/issue-8064
fix: supervisord_status showing as a worker when its notpull/8099/head
commit
51e461f44b
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<?php
|
||||
endif;
|
||||
foreach ($worker_array as $type => $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']) {
|
||||
|
|
Loading…
Reference in New Issue