How to handle service layer error #285
Unanswered
dennissetiawan
asked this question in
Q&A
Replies: 1 comment 4 replies
-
The default infinite backoff retry doesn’t mean that you just wait for the errors. Monitor should be setup to get alert on errors (either using Cadence/Temporal activity error metrics or the iwf application rest api metrics) . So you should be able to get alert and mitigate before workflow timeout. When you have confirmed the root cause, like the signal value is invalid, you can update the workflow code to catch the exception, and then skip the error to go back to wait for another valid signal. Note that unlike Temporal/Cadence, updating the workflow code like that will take effect immediately without needing to do any “versioning “ |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If i have a workflow that waits for a signal then the workflow execute a service that returns error because of some business logic validation (e.g. the business logic does not allow inserting price with amount 0 or the user is not authorized to access a data) . How do we handle this error and make the wf recover to the proper state(e.g. wait for another input) ? because it will do backoff retry with the same signal value forever.
Beta Was this translation helpful? Give feedback.
All reactions