Can you show your code? Are you exporting the Workflow definition?
Can you show your code? Are you exporting the Workflow definition?

npm create cloudflare@latest workflows-starter -- --template "cloudflare/workflows-starter" and noticed that, even if I define the workflow in other file, I still need to export it from index.ts, I think this is somewhat related, but not able to figure this out in next jsTestWorkflow isn't from the example (from your error message) so I suspect you changed a binding or the Workflow name itself?



yarn dev to work will be crazy X
•2/26/25, 7:38 PM
Error: Durable Object is overloaded. Too many requests queued.Maximum number of queued instances looks like 100k per the docs 

terminateAll here, although I would suggest redeploying the code that is spawning them to at least stop the initial run. cc @Seekerdasbatatasvitest-pool-workers to not crash with Workflows: https://github.com/cloudflare/workers-sdk/pull/8208, hopefully gets merged really :soontm: - you should be able to do some e2e testing with this, but we have more utils to properly test steps in our roadmap..
├── src
│ ├── app (next js app)
│ │ ├── api
│ │ │ └── [[...route]]
│ │ │ └── route.ts
│ │ ├── page.tsx
│ │ └── layout.tsx
│ └── server (hono server)
│ ├── routes
│ │ └── workflow-route.ts
│ ├── workflows
│ │ └── my-workflow.ts
│ └── _app.ts
├── wrangler.jsonc
└── package.jsonnpm create cloudflare@latest workflows-starter -- --template "cloudflare/workflows-starter"TestWorkflowwith a named entrypoint "TestWorkflow"Workflows does not support npx wrangler dev --remote.yarn devabstract class BaseWorkflow extends WorkflowEntrypoint<Env, Params> {
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
const something = await step.do("do something", async () => {
// ...
})
await this.execute(event, step)
}
abstract execute(event: WorkflowEvent<Params>, step: WorkflowStep): Promise<void>
}
class TestWorkflow extends BaseWorkflow {
async execute(event: WorkflowEvent<Params>, step: WorkflowStep) {
const something = await step.do("do something", async () => {
// ...
})
await someStepsIWantToShare(event, step)
}
}
async function someStepsIWantToShare (event: WorkflowEvent<Params>, step: WorkflowStep) {
const anotherStep = await step.do("do something else", async () => {
// ...
})
}Error: Durable Object is overloaded. Too many requests queued.Maximum number of queued instances{
"$workers": {
"diagnosticsChannelEvents": [],
"truncated": false,
"event": {
"rpcMethod": "run"
},
"scriptName": "...",
"outcome": "exception",
"eventType": "rpc",
"entrypoint": "...",
"scriptVersion": {
"id": "..."
},
"executionModel": "stateless",
"requestId": "...",
"wallTimeMs": 30006,
"cpuTimeMs": 0
},
"level": "error",
"message": "run",
"$metadata": {
"now": "2025-02-27T19:19:13.214Z",
"id": "...",
"requestId": "...",
"service": "...",
"error": "run",
"message": "run",
"account": "...",
"type": "cf-worker-event",
"fingerprint": "...",
"origin": "rpc"
}
}terminateAllvitest-pool-workers