File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -487,10 +487,11 @@ export interface WorkerOptions {
487
487
* From running basic stress tests we've observed 2/3 reduction in memory usage and 1/3 to 1/2 in CPU usage with this
488
488
* feature turned on.
489
489
*
490
+ * NOTE: We strongly recommend enabling the Reuse V8 Context execution model, and there is currently no known reason
491
+ * not to use it. Support for the legacy execution model may get removed at some point in the future. Please report
492
+ * any issue that requires you to disable `reuseV8Context`.
493
+ *
490
494
* @default true
491
- * @deprecated There is currently no known reason to disable the Reuse V8 Context execution model.
492
- * The legacy execution model will be completely removed at some point in the future (no earlier than 1.10.0).
493
- * Please report any issue that requires you to disable `reuseV8Context`.
494
495
*/
495
496
reuseV8Context ?: boolean ;
496
497
@@ -675,7 +676,6 @@ export function addDefaultWorkerOptions(options: WorkerOptions): WorkerOptionsWi
675
676
const maxConcurrentWorkflowTaskExecutions = options . maxConcurrentWorkflowTaskExecutions ?? 40 ;
676
677
const maxConcurrentActivityTaskExecutions = options . maxConcurrentActivityTaskExecutions ?? 100 ;
677
678
678
- // eslint-disable-next-line deprecation/deprecation
679
679
const reuseV8Context = options . reuseV8Context ?? true ;
680
680
681
681
const heapSizeMiB = v8 . getHeapStatistics ( ) . heap_size_limit / MiB ;
Original file line number Diff line number Diff line change @@ -466,7 +466,6 @@ export class Worker {
466
466
// This isn't required for vscode, only for Chrome Dev Tools which doesn't support debugging worker threads.
467
467
// We also rely on this in debug-replayer where we inject a global variable to be read from workflow context.
468
468
if ( compiledOptions . debugMode ) {
469
- // eslint-disable-next-line deprecation/deprecation
470
469
if ( compiledOptions . reuseV8Context ) {
471
470
return await ReusableVMWorkflowCreator . create (
472
471
workflowBundle ,
@@ -484,7 +483,6 @@ export class Worker {
484
483
workflowBundle,
485
484
threadPoolSize : compiledOptions . workflowThreadPoolSize ,
486
485
isolateExecutionTimeoutMs : compiledOptions . isolateExecutionTimeoutMs ,
487
- // eslint-disable-next-line deprecation/deprecation
488
486
reuseV8Context : compiledOptions . reuseV8Context ?? true ,
489
487
registeredActivityNames,
490
488
} ) ;
You can’t perform that action at this time.
0 commit comments