generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't workinglanguage-sdkIssue relates to the Language SDKIssue relates to the Language SDK
Description
const handler = withDurableExecution(
async (_event: unknown, context: DurableContext) => {
await context.promise.race([
context.wait({ seconds: 1 }),
context.wait({ seconds: 10 }),
]);
},
);This should only take 1 second and complete the execution, but it runs both waits and takes 11 seconds.
Similarly, this should instantly return but it actually waits 10 seconds:
const handler = withDurableExecution(
async (_event: unknown, context: DurableContext) => {
await context.promise.race([
context.step(() => Promise.resolve("quick resolve")),
context.wait({ seconds: 10 }),
]);
},
);The same could apply to map/parallel
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglanguage-sdkIssue relates to the Language SDKIssue relates to the Language SDK