def iter_list_executions(
self,
agent_space_id: "capo_devops_agent.types.agent_space_identifier.AgentSpaceIdentifier",
task_id: "capo_devops_agent.types.resource_id.ResourceId",
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
limit: Optional[int] = None,
next_token: Optional["capo_devops_agent.types.next_token.NextToken"] = None,
) -> "Iterator[capo_devops_agent.types.execution.Execution]":
_token = next_token
while True:
_response = self.list_executions(
agent_space_id,
task_id,
config_overrides=config_overrides,
limit=limit,
next_token=_token,
)
_page = _resolve_path(_response, ("executions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break