HI Team,
Is it possible to restart activity by API? For example, after a few retires, the activity will enter error or pending state, an external restart will be triggered after dependencies’ issues are fixed.
Thanks in advance.
HI Team,
Is it possible to restart activity by API? For example, after a few retires, the activity will enter error or pending state, an external restart will be triggered after dependencies’ issues are fixed.
Thanks in advance.
I would strongly recommend using built in primitives.
You have couple options here:
tctl wf reset --wid $myid --reason "some" --reset_type LastWorkflowTask
WorkflowServiceStubs service = WorkflowServiceStubs.newInstance();
service.blockingStub().resetWorkflowExecution(...)
Let me know if this is helpful.
Thank you Vitaly, this is very helpful, I will take the third option.