Support passing a RetryStrategy to AsyncTry

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Workload Resilience
    • Workload Resilience 2025-10-27
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Update AsyncTry to easily integrate with the new RetryStrategy interface.

      A new AsyncTry::withRetryStrategy builder stage should be introduced to allow callers to easily adopt a RetryStrategy in their async work.

      This helper will under the hood call into until and pass the strategy to withBackoffBetweenIterations via the RetryDelayAsBackoff adapter.

      To properly handle error labels with the retry strategy, we should also make the callable return a RetryStrategy::Result<T> instead of a StatusWith<T>.

      As part of this task, we should change async_rpc to use this new utility instead of manually using the retry strategy inside the until lambda

            Assignee:
            Blake Oler
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: