mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Converted exponential backoff to fixed (#9006)
This commit is contained in:
@@ -406,7 +406,7 @@ class LocalRuntime(ActionExecutionClient):
|
||||
return port
|
||||
|
||||
@tenacity.retry(
|
||||
wait=tenacity.wait_exponential(min=1, max=10),
|
||||
wait=tenacity.wait_fixed(2),
|
||||
stop=tenacity.stop_after_attempt(10) | stop_if_should_exit(),
|
||||
before_sleep=lambda retry_state: logger.debug(
|
||||
f'Waiting for server to be ready... (attempt {retry_state.attempt_number})'
|
||||
|
||||
Reference in New Issue
Block a user