hmm okay, from my testing the type of the API docs are wrong. It does indeed return an object value
hmm okay, from my testing the type of the API docs are wrong. It does indeed return an object value

But confusingly, the output property of the Binding InstanceStatus contains the step results, not the workflow output.
await step.sleep('wait 24 hours', '24 hours'), which have been stuck in the "running" phase for many hours (30+)Waiting are actually Running, and counting towards the 100 concurrency limit@cloudflare/worker-types and should be on WorkflowEvent.instanceId npx wrangler workflow targets production api. Do I need to setup a local worker to call my local workflow?

wrangler types --experimental-include-runtimeenv.WORKFLOW.get(id).status().output (something like a sort of kv?) or is it something one shouldn't rely on (e.g. expires after some time)?Retention limit for completed Workflow state: 3 days; 30 days
event.params (e.g. https://developers.cloudflare.com/workflows/get-started/guide/) whereas I now think it's event.payload (changing this fixed it for me so guessing event.params was old?)Serialized RPC arguments or return values are limited to 1MiB errorstep_name be added anywhere in future in status ?step_name along with the data as a workaround
await step.sleep('wait 24 hours', '24 hours')Running@cloudflare/worker-typesWorkflowEvent.instanceIdnpx wrangler workflowwrangler types --experimental-include-runtimeenv.WORKFLOW.get(id).status().outputevent.paramsevent.payloadSerialized RPC arguments or return values are limited to 1MiBstep_namestep_name{
"success": false,
"messages": [],
"errors": [
{
"code": 10001,
"message": "workflows.api.error.internal_server"
}
],
"result": null
}export function getApproximateSizeInBytes(obj: unknown) {
return new TextEncoder().encode(JSON.stringify(obj)).length;
}