mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(core): Expand crash recovery to cover queue mode (#9676)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user