How do I see which step a workflow is on from within my worker?

For Workers & Pages, what is the name of the domain?

private.com

What is the issue or error you’re encountering

I am unable to see the steps, the current step, previous successful steps, etc. for a workflow from within my worker. I need something similar to the output that wrangler provides here: Guide · Cloudflare Workflows docs. But honestly, doesn’t even need to be that verbose, just knowing what the steps and their statuses are, of even what the current step is would be great. Right now when I run a workflow programmatically I am completely blind to know what’s going on except “running” and “complete” which is only moderately helpful.

What steps have you taken to resolve the issue?

  • Searched cloudflare docs
  • Searched cloudflare community forums
  • Asked cloudflare AI support
  • Asked Perplexity AI

I noticed your post hasn’t received any replies yet, and I wanted to check in on you. Sometimes, posts can slip through the cracks in busy forums, but your concerns are important to the community.

Are you still experiencing the issue? If so, could you provide any additional details or updates since your original post? This information can help the community better understand your situation and offer more targeted advice or solutions.

In the meantime, here is a suggestion, using workflows CLI:

1.   To view the state of a running Workflow instance by its ID use:
     "wrangler workflows instances describe <YOUR_WORKFLOW_NAME> <WORKFLOW_ID>". 

Instances describe will show the status of each step, any sleep state, errors, and any retries related to a step.

For more information about Workflows CLI, please refer here: CLI quick start · Cloudflare Workflows docs

If you’ve already found a solution, it would be great if you could share it here. Not only does it help others who might be in a similar situation, but it also enriches the knowledge base of our community.

Looking forward to your update, and hoping we can help resolve your issue together!

Hi @valeriav,

The key part of this post is “…from within my worker…”

I am unable to see the steps, the current step, previous successful steps, etc. for a workflow from within my worker. I need something similar to the output that wrangler provides

I can’t use wrangler for this purpose, I need programmatic access to observe the steps, not just the final status of the workflow itself. How does one observe the workflow from within a worker it’s bound to?

This topic was automatically closed after 15 days. New replies are no longer allowed.