I may fail the activity completeExceptionally incase of specific errors and once the erros fixed want to
tctl wf reset --wid $myid --reason “some” --reset_type LastWorkflowTask use the tctl command to resibmit . When i am trying to resubmit lastworkflow task i am getting below RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED exception . How to resubmit the failed actibity again .
It looks like the activity failed more times that the RetryOptions.maxAttempts specified. Would you execute tctl workflow describe to see the last failure for the activity in the list of pending activities? Try executing it before the activity has timed out.
When there is some issue at micro service end they will send a response with retry option and we need to fail the workflow once the issue fixed at the micro service we need to replay failed activity with the same payload . We cant keep sending the same payload to the topic we sent and it failed and let support restart when they get acknowledgement from micro service team .
In this case, I wouldn’t use workflow failure and then reset. I would code this interaction into the workflow code directly. I would block your workflow on the activity failure waiting for a signal that indicates that this activity has to retry.