durable-execution-sdk-js.durablecontext.md
December 2, 2025 ยท View on GitHub
Home > @aws/durable-execution-sdk-js > DurableContext
DurableContext interface
Signature:
export interface DurableContext<TLogger extends DurableLogger = DurableLogger>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Context |
The underlying AWS Lambda context | ||
|
DurableContextLogger<TLogger> |
Logger instance for this context, optionally enriched with durable execution metadata if the logger supports it. By default the default logger will emit logs following this structure:
| ||
|
{ all<TOutput>(name: string | undefined, promises: DurablePromise<TOutput>[]): DurablePromise<TOutput[]>; all<TOutput>(promises: DurablePromise<TOutput>[]): DurablePromise<TOutput[]>; allSettled<TOutput>(name: string | undefined, promises: DurablePromise<TOutput>[]): DurablePromise<PromiseSettledResult<TOutput>[]>; allSettled<TOutput>(promises: DurablePromise<TOutput>[]): DurablePromise<PromiseSettledResult<TOutput>[]>; any<TOutput>(name: string | undefined, promises: DurablePromise<TOutput>[]): DurablePromise<TOutput>; any<TOutput>(promises: DurablePromise<TOutput>[]): DurablePromise<TOutput>; race<TOutput>(name: string | undefined, promises: DurablePromise<TOutput>[]): DurablePromise<TOutput>; race<TOutput>(promises: DurablePromise<TOutput>[]): DurablePromise<TOutput>; } |
Methods
|
Method |
Description |
|---|---|
|
Configures logger behavior for this context | |
|
Creates a callback that external systems can complete | |
|
Creates a callback that external systems can complete | |
|
Invokes another durable function with the specified input | |
|
Invokes another durable function with the specified input | |
|
Processes an array of items, applying durable operations to each with optional concurrency control | |
|
Processes an array of items, applying durable operations to each with optional concurrency control | |
|
Executes multiple branches with durable operations in parallel with optional concurrency control | |
|
Executes multiple branches with durable operations in parallel with optional concurrency control | |
|
Executes multiple branches with durable operations in parallel with optional concurrency control | |
|
Executes multiple branches with durable operations in parallel with optional concurrency control | |
|
Runs a function in a child context with isolated state and execution tracking | |
|
Runs a function in a child context with isolated state and execution tracking | |
|
Executes a function as a durable step with automatic retry and state persistence | |
|
Executes a function as a durable step with automatic retry and state persistence | |
|
Pauses execution for the specified duration | |
|
Pauses execution for the specified duration | |
|
Wait for an external system to complete a callback with the SendDurableExecutionCallbackSuccess or SendDurableExecutionCallbackFailure APIs. | |
|
Wait for an external system to complete a callback with the SendDurableExecutionCallbackSuccess or SendDurableExecutionCallbackFailure APIs. | |
|
Waits for a condition to be met by periodically checking state | |
|
Waits for a condition to be met by periodically checking state |