From 4db437d85a5600171e5e7a08b174355b85bc2649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 18 Sep 2024 14:08:15 +0200 Subject: [PATCH] skip only ExecutionCancelledError --- packages/cli/src/active-executions.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }