Hi all,
I’m exploring using Temporal for improving resilience of workflows. Currently my situation is such that I have a final activity in my workflow that should only to be triggered under the condition that the workflow is in its final attempt.
I’ve tried testing this with the unit test framework, where I’ve registered my workflows and mocked activities to test the retries. What I’ve noticed is that the activity retries behave as expected, but the workflow not. When I debug and check the dereference of the workflow retry policy, I find that the policy is always nil.
I have some questions regarding that:
- Does the unit test framework support workflow retries? Or are workflows accessed in the test framework always created with a nil retry policy?
- Is having a final activity triggered within the workflow based on workflow parameters the wrong approach? Perhaps a child workflow is a better approach? I only recently started using this technology, so I’m unsure what the proper approach is.
Any help is greatly appreciated
Thank you very much!