feat: Initial Code Task Runners support (no-changelog) (#10698)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Val
2024-10-02 09:31:56 +01:00
committed by GitHub
parent bdaadf10e0
commit 27d83e0d91
39 changed files with 3763 additions and 234 deletions

View File

@@ -119,6 +119,8 @@ 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) => {
@@ -182,6 +184,10 @@ export abstract class AbstractServer {
if (!inTest) {
await this.setupErrorHandlers();
this.setupPushServer();
if (!this.globalConfig.taskRunners.disabled) {
this.setupRunnerServer();
}
}
this.setupCommonMiddlewares();