mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): Prevent __default__ jobs in scaling mode (#12402)
This commit is contained in:
@@ -66,10 +66,15 @@ export class WorkflowRunner {
|
||||
//
|
||||
// FIXME: This is a quick fix. The proper fix would be to not remove
|
||||
// the execution from the active executions while it's still running.
|
||||
if (error instanceof ExecutionNotFoundError || error instanceof ExecutionCancelledError) {
|
||||
if (
|
||||
error instanceof ExecutionNotFoundError ||
|
||||
error instanceof ExecutionCancelledError ||
|
||||
error.message.includes('cancelled')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.error(`Problem with execution ${executionId}: ${error.message}. Aborting.`);
|
||||
this.errorReporter.error(error, { executionId });
|
||||
|
||||
const isQueueMode = config.getEnv('executions.mode') === 'queue';
|
||||
@@ -413,7 +418,6 @@ export class WorkflowRunner {
|
||||
data.workflowData,
|
||||
{ retryOf: data.retryOf ? data.retryOf.toString() : undefined },
|
||||
);
|
||||
this.logger.error(`Problem with execution ${executionId}: ${error.message}. Aborting.`);
|
||||
await this.processError(error, new Date(), data.executionMode, executionId, hooks);
|
||||
|
||||
reject(error);
|
||||
|
||||
Reference in New Issue
Block a user