remove the setImmediate

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

View file

@ -109,9 +109,7 @@ export class ActiveExecutions {
void postExecutePromise.promise
.finally(() => {
this.concurrencyControl.release({ mode: executionData.executionMode });
setImmediate(() => {
delete this.activeExecutions[executionId];
});
delete this.activeExecutions[executionId];
})
// Do not throw ExecutionCancelledError
.catch((error) => {