skip only ExecutionCancelledError

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-09-18 14:08:15 +02:00
parent d62b174db4
commit 4db437d85a
No known key found for this signature in database
GPG key ID: 9300FF7CDEA1FBAA

View file

@ -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;
} }