Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 5180f91

Browse files
committed
removes conversion of timeout to seconds
1 parent 61070ac commit 5180f91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stackit/core/wait.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class WaitConfig:
1010
sleep_before_wait: int = 0
1111
throttle: int = 5
12-
timeout: int = 30
12+
timeout: int = 1800
1313
temp_error_retry_limit: int = 5
1414
retry_http_error_status_codes: List[int] = field(
1515
default_factory=lambda: [HTTPStatus.BAD_GATEWAY, HTTPStatus.GATEWAY_TIMEOUT]
@@ -38,7 +38,7 @@ def wait(self) -> Any:
3838
retry_temp_error_counter = 0
3939

4040
signal.signal(signal.SIGALRM, Wait._timeout_handler)
41-
signal.alarm(self._config.timeout * 60)
41+
signal.alarm(self._config.timeout)
4242

4343
while True:
4444

0 commit comments

Comments
 (0)