Hi Maxim. I have set max retry for activity to 3. So in case of failure it got retried 3 times. When i am trying to retry manual using reset method, i am getting error like it has already been retried for maximum time.
We recommend using reset for catastrophic situations. In your case, I would recommend not setting max retries for the activity and let it retry for a long time. It would require no manual intervention if the activity is down for some time.
@maxim Hi Maxim,
I want to restart a workflow from the failed task/activity instead of restarting from the beginning.
Is there a way to do that programmatically in JAVA?
Hi @tihomir
My workflow had certain retry policy which was exhausted and workflow went to error state. Now if I restart the workflow it does not restart the failed activity as the retries are over. How can I specify/override new retry policy while restarting?
How are you “restarting” your workflow? Are you using reset feature?
Reset creates a new workflow run and replays your history up to the set WorkflowTaskStarted event, then executes your code from then on.
If you had let’s say history:
@alex Thanks for adding the functionality to Go SDK client.
Most of the request parameters are self-explanatory.
But I did not know what to set to WorkflowTaskFinishEventId.
There is server-side validation, so it should be >1 and less than current event id.
It seems like 4 (first event id of WorkflowTaskCompleted type event) is working.
Is it correct, or is there any constant defined?
My goal is to restart the workflow from the start.
Sorry to revive this thread, but how can I find the event ID of the first event of type WorkflowTaskStarted? Is there a method I call to view the event history in general (with all of its event IDs and the type of each event?) I am working in Java SDK and cannot find a way to do this.
EDIT: I set it to 4 in my call to setWorkflowTaskFinishEventId() and it started working, but is it always going to be 4?