Skip to content
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion taskiq/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ async def wait_result(
"""
start_time = time()
while not await self.is_ready():
await asyncio.sleep(check_interval)
if 0 < timeout < time() - start_time:
raise TaskiqResultTimeoutError(timeout=timeout)
await asyncio.sleep(check_interval)
return await self.get_result(with_logs=with_logs)

async def get_progress(self) -> "TaskProgress[Any] | None":
Expand Down