Keep bot jobs and harness calls from hanging

This commit is contained in:
2026-10-20 12:59:24 +01:00
parent 3e13052a25
commit 3b355d68bc
16 changed files with 420 additions and 29 deletions
+16 -3
View File
@@ -200,6 +200,19 @@ if (tls) {
}
}
cron();
botsQueue();
liveRelay();
/**
* Background services start after the server is up, and one failing to
* start never takes the server (or the others) down with it.
*/
try {
cron();
} catch (error) {
logError({ title: "Cron couldn't start", error }).catch(() => {});
}
botsQueue().catch((error) =>
logError({ title: "Bots queue couldn't start", error }).catch(() => {}),
);
liveRelay().catch((error) =>
logError({ title: "Live relay couldn't start", error }).catch(() => {}),
);