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];
});
})
// 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;
}