Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Converted exponential backoff to fixed (#9006)

Tim O'Farrell9ac8f011fea9
diff --git a/openhands/runtime/impl/local/local_runtime.py b/openhands/runtime/impl/local/local_runtime.py
index f1d6867794..0ba96b4568 100644
--- a/openhands/runtime/impl/local/local_runtime.py
+++ b/openhands/runtime/impl/local/local_runtime.py
@@ -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})'