feat: Separate task runner server from main http server (no-changelog) (#11062)

This commit is contained in:
Tomi Turtiainen
2024-10-02 16:38:42 +03:00
committed by GitHub
parent 8d9eb162ae
commit 4546649c61
11 changed files with 239 additions and 65 deletions

View File

@@ -119,8 +119,6 @@ export abstract class AbstractServer {
protected setupPushServer() {}
protected setupRunnerServer() {}
private async setupHealthCheck() {
// main health check should not care about DB connections
this.app.get('/healthz', async (_req, res) => {
@@ -184,10 +182,6 @@ export abstract class AbstractServer {
if (!inTest) {
await this.setupErrorHandlers();
this.setupPushServer();
if (!this.globalConfig.taskRunners.disabled) {
this.setupRunnerServer();
}
}
this.setupCommonMiddlewares();