Skip to content

Commit

Permalink
fix: break up growing stack in AutoscaledPool.notify (#2422)
Browse files Browse the repository at this point in the history
fixes #2421
  • Loading branch information
barjin committed Apr 16, 2024
1 parent eb13289 commit 6f2e6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/autoscaling/autoscaled_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export class AutoscaledPool {
* every `maybeRunIntervalSecs` seconds. If you want to trigger the processing immediately, use this method.
*/
async notify(): Promise<void> {
await this._maybeRunTask();
setImmediate(this._maybeRunTask);
}

/**
Expand Down

0 comments on commit 6f2e6b0

Please sign in to comment.