Hi
I have a use case where I am calling external API thru the activity for which i have set maxAttempts to 3.
The workflow run failed after the maxAttempted reached, may be due to the server not available or timeout.
when I am running the workglow using replay, it is using the MaximumAttemptsReached in the previous instance.
How do i reset or ignore the retries made in the previous workflow instance run.
These following is the code i am using now
builder = ActivityOptions.newBuilder()
.setHeartbeatTimeout(Duration.ofSeconds(appProperties.getActivityHeartbeatTimeout()))
.setScheduleToCloseTimeout(
Duration.ofSeconds(appProperties.getActivityScheduleToCloseTimeout()))
.setScheduleToStartTimeout(
Duration.ofSeconds(appProperties.getActivityScheduleToStartTimeout()))
.setStartToCloseTimeout(
Duration.ofSeconds(appProperties.getActivityStartToCloseTimeout()))
.setRetryOptions(RetryOptions.newBuilder()
.setMaximumAttempts(appProperties.getActivityRetryAttempts())
.build());