File tree Expand file tree Collapse file tree 8 files changed +0
-22
lines changed
packages/angular_devkit/build_angular/src Expand file tree Collapse file tree 8 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,6 @@ async function _renderUniversal(
123
123
}
124
124
}
125
125
} finally {
126
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
127
- renderWorker . options . minThreads = 0 ;
128
-
129
126
await renderWorker . destroy ( ) ;
130
127
}
131
128
Original file line number Diff line number Diff line change @@ -244,8 +244,6 @@ async function _renderUniversal(
244
244
}
245
245
}
246
246
} finally {
247
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
248
- worker . options . minThreads = 0 ;
249
247
void worker . destroy ( ) ;
250
248
}
251
249
Original file line number Diff line number Diff line change @@ -135,9 +135,6 @@ export class ParallelCompilation extends AngularCompilation {
135
135
}
136
136
137
137
override close ( ) {
138
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
139
- this . #worker. options . minThreads = 0 ;
140
-
141
138
return this . #worker. destroy ( ) ;
142
139
}
143
140
}
Original file line number Diff line number Diff line change @@ -144,9 +144,6 @@ export class I18nInliner {
144
144
* @returns A void promise that resolves when closing is complete.
145
145
*/
146
146
close ( ) : Promise < void > {
147
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
148
- this . #workerPool. options . minThreads = 0 ;
149
-
150
147
return this . #workerPool. destroy ( ) ;
151
148
}
152
149
}
Original file line number Diff line number Diff line change @@ -143,9 +143,6 @@ export class JavaScriptTransformer {
143
143
this . #pendingfileResults?. clear ( ) ;
144
144
145
145
if ( this . #workerPool) {
146
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
147
- this . #workerPool. options . minThreads = 0 ;
148
-
149
146
try {
150
147
await this . #workerPool. destroy ( ) ;
151
148
} finally {
Original file line number Diff line number Diff line change @@ -231,8 +231,6 @@ export class JavaScriptOptimizerPlugin {
231
231
232
232
await Promise . all ( tasks ) ;
233
233
} finally {
234
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
235
- workerPool . options . minThreads = 0 ;
236
234
void workerPool . destroy ( ) ;
237
235
}
238
236
Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ export class BundleActionExecutor {
65
65
66
66
stop ( ) : void {
67
67
if ( this . workerPool ) {
68
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
69
- this . workerPool . options . minThreads = 0 ;
70
68
void this . workerPool . destroy ( ) ;
71
69
}
72
70
}
Original file line number Diff line number Diff line change @@ -206,8 +206,6 @@ async function renderPages(
206
206
207
207
await Promise . all ( renderingPromises ) ;
208
208
} finally {
209
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
210
- renderWorker . options . minThreads = 0 ;
211
209
void renderWorker . destroy ( ) ;
212
210
}
213
211
@@ -268,8 +266,6 @@ async function getAllRoutes(
268
266
const { routes : extractedRoutes , warnings } : RoutersExtractorWorkerResult = await renderWorker
269
267
. run ( { } )
270
268
. finally ( ( ) => {
271
- // Workaround piscina bug where a worker thread will be recreated after destroy to meet the minimum.
272
- renderWorker . options . minThreads = 0 ;
273
269
void renderWorker . destroy ( ) ;
274
270
} ) ;
275
271
You can’t perform that action at this time.
0 commit comments