Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use command_index when calling get_exec_batch_results #548

Merged
merged 8 commits into from
Jul 19, 2021
6 changes: 5 additions & 1 deletion yapapi/rest/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ async def __aiter__(self) -> AsyncIterator[events.CommandEventContext]:
raise BatchTimeoutError()
try:
results: List[yaa.ExeScriptCommandResult] = await self._api.get_exec_batch_results(
self._activity_id, self._batch_id, _request_timeout=min(timeout, 5)
self._activity_id,
self._batch_id,
command_index=last_idx,
# timeout=min(timeout, 5),
filipgolem marked this conversation as resolved.
Show resolved Hide resolved
filipgolem marked this conversation as resolved.
Show resolved Hide resolved
_request_timeout=min(timeout, 5)
)
except asyncio.TimeoutError:
continue
Expand Down