Skip to content

iter_get_durable_execution_history

iter_get_durable_execution_history(
    durable_execution_arn: DurableExecutionArn,
    *,
    config_overrides: Optional[LambdaClientConfig] = None,
    include_execution_data: Optional[IncludeExecutionData] = None,
    max_items: Optional[ItemCount] = None,
    marker: Optional[String] = None,
    reverse_order: Optional[ReverseOrder] = None,
) -> Iterator[Event]
Source code in docs_src/capo_lambda/_services/_lambda.py
def iter_get_durable_execution_history(
    self,
    durable_execution_arn: "capo_lambda.types.durable_execution_arn.DurableExecutionArn",
    *,
    config_overrides: Optional[LambdaClientConfig] = None,
    include_execution_data: Optional[
        "capo_lambda.types.include_execution_data.IncludeExecutionData"
    ] = None,
    max_items: Optional["capo_lambda.types.item_count.ItemCount"] = None,
    marker: Optional["capo_lambda.types.string.String"] = None,
    reverse_order: Optional["capo_lambda.types.reverse_order.ReverseOrder"] = None,
) -> "Iterator[capo_lambda.types.event.Event]":
    _token = marker
    while True:
        _response = self.get_durable_execution_history(
            durable_execution_arn,
            config_overrides=config_overrides,
            include_execution_data=include_execution_data,
            max_items=max_items,
            marker=_token,
            reverse_order=reverse_order,
        )
        _page = _resolve_path(_response, ("events",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_marker",))
        if not _token:
            break