@@ -14,7 +14,6 @@ const DEFAULT_VALUES = {
1414 CONCURRENCY_LEVEL : 1 ,
1515 CONTEXT_MODE : ContextMode . SHARED ,
1616 THRESHOLD : {
17- cpu : 80 ,
1817 memory : 1024 ,
1918 } ,
2019 QUEUE_CHECK_INTERVAL : 100 ,
@@ -50,7 +49,7 @@ export class TaskDispatcher extends EventEmitter {
5049 private logLevel : LogLevel ;
5150 private launchOptions : PuppeteerLaunchOptions = { } ;
5251 private poolConfig : ConfigType ;
53- private threshold : { cpu : number ; memory : number } = DEFAULT_VALUES . THRESHOLD ;
52+ private threshold : { memory : number } = DEFAULT_VALUES . THRESHOLD ;
5453
5554 // Logger
5655 private logger : Logger = new Logger ( ) ;
@@ -167,7 +166,6 @@ export class TaskDispatcher extends EventEmitter {
167166 ) ;
168167 if ( this . poolConfig . threshold . activate ) {
169168 this . threshold = {
170- cpu : this . poolConfig . threshold . cpu ,
171169 memory : this . poolConfig . threshold . memory ,
172170 } ;
173171 this . metricsWatcher . startThresholdWatcher (
@@ -256,7 +254,6 @@ export class TaskDispatcher extends EventEmitter {
256254 ) ;
257255 if ( this . poolConfig . threshold . activate ) {
258256 this . threshold = {
259- cpu : this . poolConfig . threshold . cpu ,
260257 memory : this . poolConfig . threshold . memory ,
261258 } ;
262259 this . metricsWatcher . startThresholdWatcher (
0 commit comments