mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
skip only ExecutionCancelledError
This commit is contained in:
parent
d62b174db4
commit
4db437d85a
|
@ -113,9 +113,10 @@ export class ActiveExecutions {
|
||||||
delete this.activeExecutions[executionId];
|
delete this.activeExecutions[executionId];
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
// Attach a no-op handler to prevent an unhandled rejection, because
|
// Do not throw ExecutionCancelledError
|
||||||
// finally will not handle it, but rather rethrow it.
|
.catch((error) => {
|
||||||
.catch(() => {});
|
if (!(error instanceof ExecutionCancelledError)) throw error;
|
||||||
|
});
|
||||||
|
|
||||||
return executionId;
|
return executionId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue