@@ -129,15 +129,22 @@ export class RunEngine {
129
129
130
130
const keys = new RunQueueFullKeyProducer ( ) ;
131
131
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
+
132
143
this . runQueue = new RunQueue ( {
133
144
name : "rq" ,
134
145
tracer : trace . getTracer ( "rq" ) ,
135
146
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 ) ,
141
148
defaultEnvConcurrency : options . queue ?. defaultEnvConcurrency ?? 10 ,
142
149
defaultEnvConcurrencyBurstFactor : options . queue ?. defaultEnvConcurrencyBurstFactor ,
143
150
logger : new Logger ( "RunQueue" , options . queue ?. logLevel ?? "info" ) ,
@@ -1730,10 +1737,13 @@ export class RunEngine {
1730
1737
} ) ;
1731
1738
1732
1739
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
+ ) ;
1737
1747
return ;
1738
1748
}
1739
1749
0 commit comments