generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 389
Open
Description
Lambda now supports a new SDK for Durable Executions (https://github.com/aws/aws-durable-execution-sdk-js). Would be great to use this with LLRT.
Depends on: #1170
import middy from "@middy/core";
import { executionModeDurableContext } from '@middy/core/DurableContext'
const lambdaHandler = async (event, context, {signal}) => {
const response = await context.step(async()=>{
return 1
})
return response
}
export const handler = middy({ executionMode: executionModeDurableContext }).handler(lambdaHandler)
Returns SyntaxError: Could not find export 'AsyncLocalStorage' in module 'async_hooks' when running after compile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels