get_durable_execution_state¶
Operation¶
get_durable_execution_state
async
¶
get_durable_execution_state(input: GetDurableExecutionStateInput, plugins: list[Plugin] | None = None) -> GetDurableExecutionStateOutput
Retrieves the current execution state required for the replay process during durable function execution. This API is used by the Lambda durable functions SDK to get state information needed for replay. You typically don't need to call this API directly as the SDK handles state management automatically.
The response contains operations ordered by start sequence number in ascending order. Completed operations with children don't include child operation details since they don't need to be replayed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetDurableExecutionStateInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
GetDurableExecutionStateOutput
|
An instance of |
Input¶
GetDurableExecutionStateInput
dataclass
¶
Dataclass for GetDurableExecutionStateInput structure.
Attributes¶
checkpoint_token
class-attribute
instance-attribute
¶
checkpoint_token: str | None = None
A checkpoint token that identifies the current state of the execution. This token is provided by the Lambda runtime and ensures that state retrieval is consistent with the current execution context.
durable_execution_arn
class-attribute
instance-attribute
¶
durable_execution_arn: str | None = None
The Amazon Resource Name (ARN) of the durable execution.
Output¶
GetDurableExecutionStateOutput
dataclass
¶
The response from the GetDurableExecutionState operation, containing the current execution state for replay.
Attributes¶
next_marker
class-attribute
instance-attribute
¶
next_marker: str | None = None
If present, indicates that more operations are available. Use this value
as the Marker parameter in a subsequent request to retrieve the next
page of results.
operations
instance-attribute
¶
An array of operations that represent the current state of the durable execution. Operations are ordered by their start sequence number in ascending order and include information needed for replay processing.
response_metadata
class-attribute
instance-attribute
¶
response_metadata: ResponseMetadata = field(default=EMPTY_RESPONSE_METADATA, repr=False, compare=False)
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.