could it be that you do not await the create call to finish before exiting the hono route?
could it be that you do not await the create call to finish before exiting the hono route?
cause of the error is not set. Is that expected? Makes it hard to communicate data from the failed step to the recovery flowstep.waitForEvent not count towards the total step count per workflow, similar to step.sleepexponential is it 2?POST https://dash.cloudflare.com/api/v4/accounts/e97e3fed722428f4d726062eae9aa766/workflows/workflow-orchestrator-staging/instancesstep.do but it is nowhere to be found from the logs tab of the worker. I also cannot find anything on the Instance ID of the workflow invocation.
.post('/:integration/fetch', zValidator('param', z.object({ integration: z.string().min(1) })), async (ctx) => {
const { integration } = ctx.req.valid('param')
const instance = await ctx.env.HistoryIngestion.create({
id: integration,
params: { integrationId: integration },
})
await ctx.env.Jobs.put(
`workflow:${integration}`,
JSON.stringify({ instance: instance.id, status: 'pending', progress: 0, startedAt: Date.now() }),
)
return ctx.json({ success: true }, 202)
})entryErrorContext = jsgInternalError; wdErrId = cbiok85ihdsus98r7iao99nq
workerd/jsg/util.c++:320: error: e = workerd/util/sqlite.c++:499: failed: expected _ec ==
SQLITE_OK [7 == 0]; out of memory: SQLITE_NOMEM
stack:
./node_modules/@cloudflare/workerd-linux-64/bin/workerd@2667f9d
./node_modules/@cloudflare/workerd-linux-64/bin/workerd@2667c9d
./node_modules/@cloudflare/workerd-linux-64/bin/workerd@1af50ab
./node_modules/@cloudflare/workerd-linux-64/bin/workerd@1af4cee
./node_modules/@cloudflare/workerd-linux-64/bin/workerd@1af49b8POST https://dash.cloudflare.com/api/v4/accounts/e97e3fed722428f4d726062eae9aa766/workflows/workflow-orchestrator-staging/instancesstep.do