mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Filter out certain executions from crash recovery (#9904)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -32,6 +32,7 @@ import { ExecutionService } from '@/executions/execution.service';
|
||||
import { OwnershipService } from '@/services/ownership.service';
|
||||
import { WorkflowRunner } from '@/WorkflowRunner';
|
||||
import { ExecutionRecoveryService } from '@/executions/execution-recovery.service';
|
||||
import { EventRelay } from '@/eventbus/event-relay.service';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
||||
const open = require('open');
|
||||
@@ -375,6 +376,10 @@ export class Start extends BaseCommand {
|
||||
projectId: project.id,
|
||||
};
|
||||
|
||||
Container.get(EventRelay).emit('execution-started-during-bootup', {
|
||||
executionId: execution.id,
|
||||
});
|
||||
|
||||
// do not block - each execution either runs concurrently or is queued
|
||||
void workflowRunner.run(data, undefined, false, execution.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user