Skip to content

Refactor elastic retry decorators into a single elastic_retry method.#202

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_885122724
Open

Refactor elastic retry decorators into a single elastic_retry method.#202
copybara-service[bot] wants to merge 1 commit intomainfrom
test_885122724

Conversation

@copybara-service
Copy link

Refactor elastic retry decorators into a single elastic_retry method.

This change unifies the pause_resume and replica_resize functionalities into a single elastic_retry decorator. The new decorator uses a minimum_slice_count parameter to control whether to wait for all slices (defaulting to pause/resume behavior) or a smaller subset (enabling replica/resize behavior). The old pause_resume and replica_resize methods are now deprecated and act as wrappers around elastic_retry.

This change unifies the `pause_resume` and `replica_resize` functionalities into a single `elastic_retry` decorator. The new decorator uses a `minimum_slice_count` parameter to control whether to wait for all slices (defaulting to pause/resume behavior) or a smaller subset (enabling replica/resize behavior). The old `pause_resume` and `replica_resize` methods are now deprecated and act as wrappers around `elastic_retry`.

PiperOrigin-RevId: 885122724
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.

1 participant