@@ -129,15 +129,22 @@ export class RunEngine {
129129
130130 const keys = new RunQueueFullKeyProducer ( ) ;
131131
132+ const queueSelectionStrategyOptions = {
133+ keys,
134+ redis : { ...options . queue . redis , keyPrefix : `${ options . queue . redis . keyPrefix } runqueue:` } ,
135+ defaultEnvConcurrencyLimit : options . queue ?. defaultEnvConcurrency ?? 10 ,
136+ ...options . queue ?. queueSelectionStrategyOptions ,
137+ } ;
138+
139+ this . logger . log ( "RunEngine FairQueueSelectionStrategy queueSelectionStrategyOptions" , {
140+ options : queueSelectionStrategyOptions ,
141+ } ) ;
142+
132143 this . runQueue = new RunQueue ( {
133144 name : "rq" ,
134145 tracer : trace . getTracer ( "rq" ) ,
135146 keys,
136- queueSelectionStrategy : new FairQueueSelectionStrategy ( {
137- keys,
138- redis : { ...options . queue . redis , keyPrefix : `${ options . queue . redis . keyPrefix } runqueue:` } ,
139- defaultEnvConcurrencyLimit : options . queue ?. defaultEnvConcurrency ?? 10 ,
140- } ) ,
147+ queueSelectionStrategy : new FairQueueSelectionStrategy ( queueSelectionStrategyOptions ) ,
141148 defaultEnvConcurrency : options . queue ?. defaultEnvConcurrency ?? 10 ,
142149 defaultEnvConcurrencyBurstFactor : options . queue ?. defaultEnvConcurrencyBurstFactor ,
143150 logger : new Logger ( "RunQueue" , options . queue ?. logLevel ?? "info" ) ,
@@ -1730,10 +1737,13 @@ export class RunEngine {
17301737 } ) ;
17311738
17321739 if ( ! taskRun ) {
1733- this . logger . error ( "RunEngine.handleRepairSnapshot SUSPENDED/FINISHED task run not found" , {
1734- runId,
1735- snapshotId,
1736- } ) ;
1740+ this . logger . error (
1741+ "RunEngine.handleRepairSnapshot SUSPENDED/FINISHED task run not found" ,
1742+ {
1743+ runId,
1744+ snapshotId,
1745+ }
1746+ ) ;
17371747 return ;
17381748 }
17391749
0 commit comments