feat(core): Expand crash recovery to cover queue mode (#9676)

This commit is contained in:
Iván Ovejero
2024-06-18 15:22:02 +02:00
committed by GitHub
parent 7e44cd7f16
commit c58621ab79
8 changed files with 262 additions and 18 deletions

View File

@@ -31,6 +31,7 @@ import type { IWorkflowExecutionDataProcess } from '@/Interfaces';
import { ExecutionService } from '@/executions/execution.service';
import { OwnershipService } from '@/services/ownership.service';
import { WorkflowRunner } from '@/WorkflowRunner';
import { ExecutionRecoveryService } from '@/executions/execution-recovery.service';
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
const open = require('open');
@@ -65,8 +66,6 @@ export class Start extends BaseCommand {
protected server = Container.get(Server);
private pruningService: PruningService;
constructor(argv: string[], cmdConfig: Config) {
super(argv, cmdConfig);
this.setInstanceType('main');
@@ -294,6 +293,7 @@ export class Start extends BaseCommand {
await this.server.start();
Container.get(PruningService).init();
Container.get(ExecutionRecoveryService).init();
if (config.getEnv('executions.mode') === 'regular') {
await this.runEnqueuedExecutions();