Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Redact values from the output logs

Is there a way to redact values from the step output, so that it doesn't appear in the Workflow logs (workflows/example-workflow/instance/runID)? We have a step that passes API keys to another step, and it's all logged in the workflow runs... which isn't ideal.

NonRetryableError

I am trying to end up workflow with custom error, so I used NonRetryableError outside of step, but the the message was not used as an error.
No description

Hi I would like to understand the

Hi I would like to understand the lifecycle of workflow, I am trying to replace cron by workflow, so I've done something like ```ts run(){ while(true){...

concurrent instances limit - waitForEvent

Hey all! Does a workflow that is currently in a waitForEvent state count towards the concurrent instances limit? And out of interest, does a workflow in this state have any active compute for listening?

I also noticed that this issue only

I also noticed that this issue only happens when the sleep duration is long, while short sleep periods work perfectly fine. Has anyone encountered this behavior or knows why it might be happening?...

SleepUntil

Hey everyone! I'm using sleepUntil in my workflow, but when the end time is reached, the entire workflow restarts instead of resuming from the sleep step. Because of this, the sleepUntil action never completes or fails. As a result, my code detects that the step is still pending and triggers sleepUntil again, causing it to re-execute continuously....
No description

Hey guys, I'm running into a persistent

Hey guys, I'm running into a persistent issue where workers report typical wall time (200ms) but my client-side ends up taking around 5-6s and timing out. Haven't been able to reproduce consistently but run into this problem every single day basically. Here's an example of what I've logged from one of these faulty requests: - Wall time (233ms) - Request from upstream provider (LLM Inference) - (181ms)...

Hey @avenceslau | Workflows something

Hey @avenceslau something odd happened with this workflow with the SLEEP step functionality. 1- most obvious error artificat is that there appears to be 5 "wait" steps still "RUNNING" for this workflow instance 2- this workflow was supposed to run over 7 days (with 1 day wait in between each). Yet it seems to have accelerated and run in 1 day. ...
No description

For workflows when I try and copy the

For workflows when I try and copy the output for a given step it says [truncated output] at the end is there any way to get the full output

Is there a recommended way to have a

Is there a recommended way to have a conditional step in a workflow? It seems like an "if" outside of a step, causes an error even if the workflow completes successfully. I'm wanting to pull a config from the KV store, so I can toggle steps on/off without having to deploy code. Should I put the conditional inside a step?

how can I deploy a workflow in a nextjs

how can I deploy a workflow in a nextjs or tanstack start wrangler project? where do I export the workflow class. workflows needs to be exported in a src/index.ts.

I had a workflow that failed in

I had a workflow that failed in production with nothing more than internal error. It shows "Errored" in the dashboard. Is there any more investigation I can do to know what happened? Instance: bd1a0c85-6f10-451d-a91b-ee229909d0a6

Workflows logs

Another question -- where do i see logs for workflows, eg any logging that workflow does, how do i see those logs?

Parallel steps

If I have a workflow that executes steps in parallel and one step fails while the others are still running, what happens? Do the others finish or are they terminated?

What's weird is it's saying

What's weird is it's saying The execution of the Workflow instance was terminated, as a step threw an NonRetryableError and it was not handled and the internal workflows error as well...

Does a step fail silently if the

Does a step fail silently if the returned amount is more than the 1MiB? Its the only conclusion i can reach as to why my step is constantly restarting.

You could combine with Queues for

You could combine with Queues for batching and delays

Why is there a limit for the concurrent

Why is there a limit for the concurrent workflow invocations (10k) This blocks the things a lot. Assume a workflow is used to remind after 30 days sign-up....

waitForEvent and sendEvent on local dev

I started getting the following error when sending events to a Workflow Instance that is waiting. See attached for implementation of waitForEvent and sendEvent. This setup has been working fine up until now. This seems to only be an issue locally; deployed versions are working as expected.
Next