https://developers.cloudflare.com/workflows/build/workers-api/#nonretryableerror
Cloudflare Docs
This guide details the Workflows API within Cloudflare Workers, including methods, types, and usage examples.

timestamp.toISOString is not a functiondo 1 and sleep 1 and pick up from do 2. is that correct?




ZodError
1ac93aea0842f2d3ef10111b5bf7bb11

const response = await ai(env).chat.completions.create({
response_format: zodResponseFormat(schema, "spam_detection"),
model: "gpt-4o",
messages: [
{
role: "user",
content: prompt,
},
],
});
return schema.parse(JSON.parse(response.choices[0].message.content || "{}"));const maxFutureDays = await step.do(`get ${key} max days`, async () => 330);while (somecondition){
await step.do(`some action `${somekey}`, async () => {});
}[vpw:inf] Starting isolated runtimes for vitest.config.mts...
Worker "workflows:telegram-mod-wf"'s binding "USER_WORKFLOW" refers to service "core:user:vitest-pool-workers-runner-" with a named entrypoint "MessageHandler", but "core:user:vitest-pool-workers-runner-" has no such named entrypoint.
WARN - IDE integration: Got finished tests before collecting them
WARN - IDE integration: Cannot finish not started testingtimestamp.toISOString is not a functionconst configs = [{ id: 1, delay: "2 hours" }, { ... }]
for config in configs:
await step.do(`do ${config.id}`, { ... })
await step.sleep(`sleep ${config.id}`, config["delay"])do 1sleep 1do 2