refactor(core): Clean up event relays (no-changelog) (#10284)

This commit is contained in:
Iván Ovejero
2024-08-02 16:52:49 +02:00
committed by GitHub
parent 55f2ffe256
commit aa0a470dce
49 changed files with 487 additions and 397 deletions

View File

@@ -30,7 +30,7 @@ import type { WorkerJobStatusSummary } from '@/services/orchestration/worker/typ
import { ServiceUnavailableError } from '@/errors/response-errors/service-unavailable.error';
import { BaseCommand } from './BaseCommand';
import { MaxStalledCountError } from '@/errors/max-stalled-count.error';
import { AuditEventRelay } from '@/eventbus/audit-event-relay.service';
import { LogStreamingEventRelay } from '@/events/log-streaming-event-relay';
export class Worker extends BaseCommand {
static description = '\nStarts a n8n worker';
@@ -286,7 +286,7 @@ export class Worker extends BaseCommand {
await Container.get(MessageEventBus).initialize({
workerId: this.queueModeId,
});
Container.get(AuditEventRelay).init();
Container.get(LogStreamingEventRelay).init();
}
/**