@@ -35,6 +35,10 @@ class DeployRunner
3535 public const TASK_BUILD = 'build ' ;
3636 public const TASK_DEPLOY = 'deploy ' ;
3737
38+ public const DEFAULT_BRANCHER_TIMEOUT = 1500 ;
39+ public const DEFAULT_BRANCHER_REACHABILITY_CHECK_COUNT = 6 ;
40+ public const DEFAULT_BRANCHER_REACHABILITY_CHECK_INTERVAL = 10 ;
41+
3842 private TaskFactory $ taskFactory ;
3943 private InputInterface $ input ;
4044 private LoggerInterface $ log ;
@@ -274,8 +278,9 @@ private function maybeConfigureBrancherServer(Server $server, bool $reuseBranche
274278 if ($ isBrancher && $ parentApp ) {
275279 $ settings = $ serverOptions [Server::OPTION_HN_BRANCHER_SETTINGS ] ?? [];
276280 $ labels = $ serverOptions [Server::OPTION_HN_BRANCHER_LABELS ] ?? [];
277- $ reachabilityCheckCount = $ serverOptions [Server::OPTION_HN_BRANCHER_REACHABILITY_CHECK_COUNT ] ?? 6 ;
278- $ reachabilityCheckInterval = $ serverOptions [Server::OPTION_HN_BRANCHER_REACHABILITY_CHECK_INTERVAL ] ?? 10 ;
281+ $ timeout = $ serverOptions [Server::OPTION_HN_BRANCHER_TIMEOUT ] ?? self ::DEFAULT_BRANCHER_TIMEOUT ;
282+ $ reachabilityCheckCount = $ serverOptions [Server::OPTION_HN_BRANCHER_REACHABILITY_CHECK_COUNT ] ?? self ::DEFAULT_BRANCHER_REACHABILITY_CHECK_COUNT ;
283+ $ reachabilityCheckInterval = $ serverOptions [Server::OPTION_HN_BRANCHER_REACHABILITY_CHECK_INTERVAL ] ?? self ::DEFAULT_BRANCHER_REACHABILITY_CHECK_INTERVAL ;
279284
280285 $ this ->log ->info (sprintf ('Creating an brancher Hypernode based on %s. ' , $ parentApp ));
281286 if ($ settings ) {
@@ -303,7 +308,7 @@ private function maybeConfigureBrancherServer(Server $server, bool $reuseBranche
303308 $ this ->log ->info ('Waiting for brancher Hypernode to become available... ' );
304309 $ this ->brancherHypernodeManager ->waitForAvailability (
305310 $ brancherApp ,
306- 1500 ,
311+ $ timeout ,
307312 $ reachabilityCheckCount ,
308313 $ reachabilityCheckInterval
309314 );
0 commit comments