diff --git a/packages/cli/src/active-executions.ts b/packages/cli/src/active-executions.ts index 775b2a6a10..a8acae93b5 100644 --- a/packages/cli/src/active-executions.ts +++ b/packages/cli/src/active-executions.ts @@ -113,9 +113,10 @@ export class ActiveExecutions { delete this.activeExecutions[executionId]; }); }) - // Attach a no-op handler to prevent an unhandled rejection, because - // finally will not handle it, but rather rethrow it. - .catch(() => {}); + // Do not throw ExecutionCancelledError + .catch((error) => { + if (!(error instanceof ExecutionCancelledError)) throw error; + }); return executionId; }