-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
// In the Workflow logs we can see that this is e.g. 3:08:06PM
const eventId = await context.run<string | null>(
'pdf-export.started',
async () => {
const eventId = crypto.randomUUID();
await invokeLambda('pdfExportContainer', {
course,
imageUrl,
...lambdaPayload,
eventId
});
return eventId;
}
);
// This part is not relevant
if (!eventId) {
await context.run<void>('error.pdf-export.failed', async () => {
throw new Error('Failed to generate PDF');
});
...
return;
}
// In the Workflow logs we can see that this is e.g. 3:08:08PM meanwhile we notified
already one second before that
const { eventData, timeout } = await context.waitForEvent(
'pdf-export.completed',
eventId,
{
timeout: '15m'
}
);My issue with the above code is that my lambda function reaches the "notify workflow" function within 5 seconds. And then the context.waitForEvent is not yet called.
What is the average time between these "workflow steps"? Can it be that that takes about 10 seconds?
Metadata
Metadata
Assignees
Labels
No labels