Is there any news on having singleton workflows / limiting a specifically workflow to concurrency of
Is there any news on having singleton workflows / limiting a specifically workflow to concurrency of 1?
instance.terminate() isn’t implemented in local dev. I figured restarting the server would clear everything, but even after a restart the workflow instance still seems to persist.wrangler dev will create a .wrangler/state directory where the command was run. You can also change this if you'd like!terminate() is intended to terminate the instance, and although it is not supported yet in dev, it still wouldn't clear the workflow instance state. .wrangler/state/workflows there will be 3 storage files (.sqlite, .sqllite-wal and .sqlite-shm) for each created workflow (the file names are not related to the workflow instance ids, so it is complicated to know which ones to delete). If you really want to run a workflow instance with the id equal to one that already ran, your best option is to delete the files under that directory and re-run the workflow instance.introspectWorkflow should be done at the start of the test (you can think of doing introspectWorkflow where you mock other APIs and so on) - intercepted workflows with DOs should just work (if you want to mock/intercept the calls between the two, let me know)
cron it seems to do it from other geographic locations. I have a security rule to block all traffic to the worker that's not from the United States and it seems that, as of recently, my cron-scheduled workflows are being instantiated outside of the United States in Poland or Singapore which is causing them to be blocked by the security rules.
WorkflowInternalError: Attempt failed due to internal workflows error errors - at any step (even those that weren't affected by my latest deploy). 6b8af9a0-7ba7-4f2a-ade4-31500c2b2cfb, 0ecea869-a90e-416f-a882-2a84f45d7f13, or 5ba45a09-a860-4f7c-8097-197b67dbfbf0. wrangler dev or next dev but getting error{ "source": { "level": "error", "message": "run" }, "dataset": "cloudflare-workers", "timestamp": "2025-09-17T14:51:22.136Z", "$workers": { "diagnosticsChannelEvents": [], "truncated": false, "event": { "rpcMethod": "run" }, "scriptName": "worker-insight-staging", "outcome": "exception", "eventType": "rpc", "entrypoint": "FetchAdInsightsWorkflow", "scriptVersion": { "id": "f85a34a5-8a00-4692-b0bc-4c80b91fe8ef" }, "executionModel": "stateless", "requestId": "PUFWDN8JVB9SKDFI", "wallTimeMs": 463, "cpuTimeMs": 3 }, "$metadata": { "id": "01K5C2H8MR4QRA6B5HE0KF1FBX", "requestId": "PUFWDN8JVB9SKDFI", "trigger": "default.run", "service": "worker-insight-staging", "level": "error", "error": "run", "message": "run", "account": "e97e3fed722428f4d726062eae9aa766", "type": "cf-worker-event", "fingerprint": "34bb94fedcdf1b63ffea70b314aa379b", "origin": "rpc", "messageTemplate": "run" }, "links": [] }const defaultConfig: WorkflowStepConfig = {
retries: {
limit: 0,
delay: 0,
backoff: 'constant',
},
timeout: '3 minutes',
}