Skip to content

Commit dfe3a8b

Browse files
committed
fix(@angular/build): increase worker idle timeout
This is a workaround for piscinajs/piscina#816 Closes #30549 (cherry picked from commit 1d76d0e)
1 parent 56f426e commit dfe3a8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular/build/src/utils/worker-pool.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export class WorkerPool extends Piscina {
1515
constructor(options: WorkerPoolOptions) {
1616
const piscinaOptions: WorkerPoolOptions = {
1717
minThreads: 1,
18-
idleTimeout: 1000,
18+
// Workaround for https://github.com/piscinajs/piscina/issues/816
19+
idleTimeout: 10_000,
1920
// Web containers do not support transferable objects with receiveOnMessagePort which
2021
// is used when the Atomics based wait loop is enable.
2122
atomics: process.versions.webcontainer ? 'disabled' : 'sync',

0 commit comments

Comments
 (0)