Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of delete workflow executions retries #2768

Merged

Conversation

alexshtin
Copy link
Member

What changed?
Limit number of delete workflow executions retries.

Why?
Infinity retries might generate too much load on the cluster.

How did you test it?
Run locally.

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner April 26, 2022 19:28
@@ -166,27 +168,27 @@ func deleteWorkflowExecutions(ctx workflow.Context, params ReclaimResourcesParam

if isAdvancedVisibility {
ctx3 := workflow.WithActivityOptions(ctx, ensureNoExecutionsAdvVisibilityActivityOptions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to have both client side retry and activity server side retry?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to introduce one more child workflow here, it is already pretty complex. Aslo in this case there is no backoff and I wouldn't even call it "rerty". It is mostly "try to do it with 3 attempts".

@alexshtin alexshtin force-pushed the feature/limit-reclaim-resources-retries branch from 5fccc42 to dbc1c6b Compare April 29, 2022 21:48
@alexshtin alexshtin enabled auto-merge (squash) April 29, 2022 21:53
@alexshtin alexshtin merged commit 2a938b8 into temporalio:master Apr 29, 2022
@alexshtin alexshtin deleted the feature/limit-reclaim-resources-retries branch April 29, 2022 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants