temporalio / temporalio/temporal

Is there a way to detect when workflow is in a Failed State but is still "Running"

Open
#6,275 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Is your feature request related to a problem? Please describe.
If I do this https://github.com/temporalio/samples-typescript/compare/main...bijeebuss:samples-typescript:main
and then start the workflow it will show up as "Running" but it's actually in a sort of failed state. It also does this in other cases like when you forget to export the workflow.

Things I tried

  1. Try/Catch (does not catch the error)
  2. Custom Logger: All I see in the logs is "workflow started" and "workflow completed" and the meta has no way to detect that it actually failed.
  3. setting retry: { maximumAttempts: 1 }
    when starting the workflow does not cause the workflow to enter an actual "Failed" state

Describe the solution you'd like
A way to detect when a workflow enters a state like this. Maybe it already exists but I can't find anything

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked samples-typescript comparison and reproduce the workflow-start scenario where an unexported workflow or similar error leaves the workflow Running. Review the observed logs, retry behavior, and workflow state to determine whether a supported detection signal exists; done means the detection mechanism or its absence is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, typescript
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.