I have a use case where I’d like to catch any workflow exceptions in the inbound workflow interceptor and await for a signal to proceed. I have something like this:
But it doesn’t wait, although I do see the log line Workflow execution failed: so it does go into the catch block but does not respect the await. Am I doing anything wrong?
Both are false and I think it is blocking on await but its not able to receive the signal for some reason. This is how I’ve implemented the handleSignal method
But when I send a signal to the workflow from the UI, its not being handled at all so the workflow just keeps awaiting until the timeout happens. I’m following the retry on signal interceptor example here samples-java/core/src/main/java/io/temporal/samples/retryonsignalinterceptor at main · temporalio/samples-java · GitHub to retry activities on failures, but I’d also like something similar for workflow failures which is what I’m trying to achieve here, but it doesn’t seem to work.
From the beginning. When writing workflows think about them as normal code. So if you code threw an exception there is not way to restart a function from the point the exception was thrown.