[loop-cycle-50] fix: agent retry uses exponential backoff instead of fixed 1s delay (#174) (#181)

This commit is contained in:
2026-03-15 12:08:30 -04:00
parent bcd6d7e321
commit 5b57bf3dd0
2 changed files with 19 additions and 6 deletions

View File

@@ -145,7 +145,7 @@ class BaseAgent(ABC):
max_retries,
exc,
)
await asyncio.sleep(1)
await asyncio.sleep(min(2 ** (attempt - 1), 8))
else:
logger.error(
"Agent run failed after %d attempts: %s",