refactor(core): Centralize scaling mode (no-changelog) (#9835)

This commit is contained in:
Iván Ovejero
2024-08-07 13:50:46 +02:00
committed by GitHub
parent ee968b7163
commit e31d017bdd
17 changed files with 529 additions and 453 deletions

View File

@@ -1,11 +1,12 @@
import type { ExecutionStatus, WorkflowExecuteMode } from 'n8n-workflow';
import type { RedisServicePubSubPublisher } from '../../redis/RedisServicePubSubPublisher';
import type { RunningJobSummary } from '@/scaling/types';
export interface WorkerCommandReceivedHandlerOptions {
queueModeId: string;
redisPublisher: RedisServicePubSubPublisher;
getRunningJobIds: () => string[];
getRunningJobsSummary: () => WorkerJobStatusSummary[];
getRunningJobIds: () => Array<string | number>;
getRunningJobsSummary: () => RunningJobSummary[];
}
export interface WorkerJobStatusSummary {