fix: Queue health monitor should only run on worker processes (#6228)

This commit is contained in:
Tom Moor
2023-11-27 20:55:00 -05:00
committed by GitHub
parent 2db7776533
commit 07cd13f17a
7 changed files with 62 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
import Logger from "@server/logging/Logger";
import { setResource } from "@server/logging/tracer";
import { traceFunction } from "@server/logging/tracing";
import HealthMonitor from "@server/queues/HealthMonitor";
import { initI18n } from "@server/utils/i18n";
import {
globalEventQueue,
@@ -152,4 +153,8 @@ export default function init() {
.catch((err) => {
Logger.fatal("Error starting taskQueue", err);
});
HealthMonitor.start(globalEventQueue);
HealthMonitor.start(processorEventQueue);
HealthMonitor.start(websocketQueue);
}