refactor(core): Make task broker an explicit component of task runner (#12782)

This commit is contained in:
Tomi Turtiainen
2025-01-31 17:39:06 +02:00
committed by GitHub
parent c7a15d5980
commit b77bf86166
31 changed files with 185 additions and 143 deletions

View File

@@ -7,9 +7,9 @@ import * as process from 'node:process';
import { OnShutdown } from '@/decorators/on-shutdown';
import { TaskRunnerAuthService } from './auth/task-runner-auth.service';
import { forwardToLogger } from './forward-to-logger';
import { NodeProcessOomDetector } from './node-process-oom-detector';
import { TaskBrokerAuthService } from './task-broker/auth/task-broker-auth.service';
import { TaskRunnerLifecycleEvents } from './task-runner-lifecycle-events';
import { TypedEmitter } from '../typed-emitter';
@@ -68,7 +68,7 @@ export class TaskRunnerProcess extends TypedEmitter<TaskRunnerProcessEventMap> {
constructor(
logger: Logger,
private readonly runnerConfig: TaskRunnersConfig,
private readonly authService: TaskRunnerAuthService,
private readonly authService: TaskBrokerAuthService,
private readonly runnerLifecycleEvents: TaskRunnerLifecycleEvents,
) {
super();