Skip to content

iter_list_notebook_executions async

iter_list_notebook_executions(
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    editor_id: Optional[XmlStringMaxLen256] = None,
    status: Optional[NotebookExecutionStatus] = None,
    from_: Optional[Date] = None,
    to: Optional[Date] = None,
    marker: Optional[Marker] = None,
    execution_engine_id: Optional[XmlString] = None,
) -> AsyncIterator[NotebookExecutionSummary]
Source code in docs_src/capo_emr/_services/async_emr.py
async def iter_list_notebook_executions(
    self,
    *,
    config_overrides: Optional[AsyncEMRClientConfig] = None,
    editor_id: Optional[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ] = None,
    status: Optional[
        "capo_emr.types.notebook_execution_status.NotebookExecutionStatus"
    ] = None,
    from_: Optional["capo_emr.types.date.Date"] = None,
    to: Optional["capo_emr.types.date.Date"] = None,
    marker: Optional["capo_emr.types.marker.Marker"] = None,
    execution_engine_id: Optional["capo_emr.types.xml_string.XmlString"] = None,
) -> "AsyncIterator[capo_emr.types.notebook_execution_summary.NotebookExecutionSummary]":
    _token = marker
    while True:
        _response = await self.list_notebook_executions(
            config_overrides=config_overrides,
            editor_id=editor_id,
            status=status,
            from_=from_,
            to=to,
            marker=_token,
            execution_engine_id=execution_engine_id,
        )
        _page = _resolve_path(_response, ("notebook_executions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("marker",))
        if not _token:
            break