Skip to content

Commit c6e320b

Browse files
committed
add hn_brancher_timeout as well
1 parent 478c530 commit c6e320b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/BrancherServer.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ public function setSettings(array $settings): self
3636
return $this;
3737
}
3838

39+
/**
40+
* @param int $timeout Maximum time in seconds to wait for brancher availability
41+
* @return $this
42+
*/
43+
public function setBrancherTimeout(int $timeout): self
44+
{
45+
$this->setOption(self::OPTION_HN_BRANCHER_TIMEOUT, $timeout);
46+
return $this;
47+
}
48+
3949
/**
4050
* @param int $count Number of consecutive successful reachability checks required
4151
* @return $this

src/Server.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Server
1010
public const OPTION_HN_BRANCHER = 'hn_brancher';
1111
public const OPTION_HN_BRANCHER_LABELS = 'hn_brancher_labels';
1212
public const OPTION_HN_BRANCHER_SETTINGS = 'hn_brancher_settings';
13+
public const OPTION_HN_BRANCHER_TIMEOUT = 'hn_brancher_timeout';
1314
public const OPTION_HN_BRANCHER_REACHABILITY_CHECK_COUNT = 'hn_brancher_reachability_check_count';
1415
public const OPTION_HN_BRANCHER_REACHABILITY_CHECK_INTERVAL = 'hn_brancher_reachability_check_interval';
1516
public const OPTION_HN_PARENT_APP = 'hn_parent_app';

0 commit comments

Comments
 (0)