Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
from tenacity.asyncio import AsyncRetrying
from tenacity.before_sleep import before_sleep_log
from tenacity.stop import stop_after_delay
from tenacity.wait import wait_fixed
from tenacity.wait import wait_exponential

from ..core.settings import WebServerSettings
from ..exceptions.backend_errors import (
Expand Down Expand Up @@ -253,7 +253,7 @@ async def _wait_for_long_running_task_results(self, lrt_response: httpx.Response

# GET task status now until done
async for attempt in AsyncRetrying(
wait=wait_fixed(0.5),
wait=wait_exponential(multiplier=0.5, min=0.5, max=30),
stop=stop_after_delay(_POLL_TIMEOUT),
reraise=True,
retry=retry_if_exception_type(TryAgain),
Expand Down
Loading