Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bijeebuss opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bijeebuss
Copy link

bijeebuss commented Jul 11, 2024

Is your feature request related to a problem? Please describe.
If I do this temporalio/samples-typescript@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant