File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -842,7 +842,7 @@ export class NetworkCommand extends BaseCommand {
842
842
let attempts = 0 ;
843
843
let svc = null ;
844
844
845
- while ( attempts < 30 ) {
845
+ while ( attempts < constants . LOAD_BALANCER_CHECK_MAX_ATTEMPTS ) {
846
846
svc = await self . k8Factory
847
847
. getK8 ( consensusNode . context )
848
848
. services ( )
@@ -866,7 +866,7 @@ export class NetworkCommand extends BaseCommand {
866
866
}
867
867
868
868
attempts ++ ;
869
- await helpers . sleep ( Duration . ofSeconds ( 2 ) ) ;
869
+ await helpers . sleep ( Duration . ofSeconds ( constants . LOAD_BALANCER_CHECK_DELAY_SECS ) ) ;
870
870
}
871
871
throw new SoloError ( 'Load balancer not found' ) ;
872
872
} ,
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ export const RELAY_PODS_READY_DELAY = +process.env.RELAY_PODS_READY_DELAY || 1_0
204
204
export const GRPC_PORT = + process . env . GRPC_PORT || 50_211 ;
205
205
export const LOCAL_BUILD_COPY_RETRY = + process . env . LOCAL_BUILD_COPY_RETRY || 3 ;
206
206
207
+ export const LOAD_BALANCER_CHECK_DELAY_SECS = + process . env . LOAD_BALANCER_CHECK_DELAY_SECS || 5 ;
208
+ export const LOAD_BALANCER_CHECK_MAX_ATTEMPTS = + process . env . LOAD_BALANCER_CHECK_MAX_ATTEMPTS || 60 ;
209
+
207
210
export const NETWORK_DESTROY_WAIT_TIMEOUT = + process . env . NETWORK_DESTROY_WAIT_TIMEOUT || 120 ;
208
211
209
212
export const DEFAULT_LOCAL_CONFIG_FILE = 'local-config.yaml' ;
You can’t perform that action at this time.
0 commit comments