Home > @aws/durable-execution-sdk-js > DurableContext
Signature:
export interface DurableContext<TLogger extends DurableLogger = DurableLogger>|
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: {
"timestamp": "2025-11-21T18:39:24.743Z",
"executionArn": "arn:aws:lambda:...",
"level": "INFO",
"operationId": "abc123",
"message": { "userId": "123", "action": "login" }
"requestId": "72171fff-70c9-4066-b819-11d3eb549de0",
} | ||
|
{ 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>; } |
|
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 |