Provide WorkflowStatus in WorkflowNotFoundException when signing a workflow
Is your feature request related to a problem? Please describe. Currently signaling a closed workflow will throw this exception, but there are several cases:
- Workflow really doesn't exist (or deleted after retention)
- Workflow is completed/terminated/etc (closed)
As an application, we sometimes need to handle the two cases differently(error handling).
Describe the solution you'd like The exception should just return "WorkflowStatus" inside.
Describe alternatives you've considered Currently we have to make a DescribeWorkflowExecution API call to achieve this. This requires more code, more error handling, and higher latency .
Additional context Add any other context or screenshots about the feature request here.
Currently the server does not send back this information on a signal to a not running workflow. So to clarify, is the ask that the Temporal server sends back the WorkflowExecutionStatus on a signal to a not running workflow?
Yes 👍 it needs server support
Thanks, Quanzheng
On Fri, Jan 12, 2024 at 4:50 PM Quinn Klassen @.***> wrote:
Currently the server does not send back this information on a signal to a not running workflow. So to clarify, is the ask that the Temporal server sends back the WorkflowExecutionStatus on a signal to a not running workflow?
— Reply to this email directly, view it on GitHub https://github.com/temporalio/sdk-java/issues/1969#issuecomment-1890198939, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCQPM3DURANKBM4NOAMTLTYOHK6HAVCNFSM6AAAAABBXCIIUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGE4TQOJTHE . You are receiving this because you authored the thread.Message ID: @.***>
I could transfer this issue to the https://github.com/temporalio/temporal repo, but its title and description are very Java SDK specific. Rather, can you open an issue there asking for this information to be present on the not-found details of workflow calls?
I could transfer this issue to the https://github.com/temporalio/temporal repo, but its title and description are very Java SDK specific. Rather, can you open an issue there asking for this information to be present on the not-found details of workflow calls?
yeah: https://github.com/temporalio/temporal/issues/5303