Skip to content

Commit 6f2e6b0

Browse files
authored
fix: break up growing stack in AutoscaledPool.notify (#2422)
fixes #2421
1 parent eb13289 commit 6f2e6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/autoscaling/autoscaled_pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class AutoscaledPool {
453453
* every `maybeRunIntervalSecs` seconds. If you want to trigger the processing immediately, use this method.
454454
*/
455455
async notify(): Promise<void> {
456-
await this._maybeRunTask();
456+
setImmediate(this._maybeRunTask);
457457
}
458458

459459
/**

0 commit comments

Comments
 (0)