MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / _compute_backoff_seconds

Function _compute_backoff_seconds

tensorboard/util/grpc_util.py:187–193  ·  view source on GitHub ↗

Compute appropriate wait time between RPC attempts.

(num_attempts)

Source from the content-addressed store, hash-verified

185
186
187def _compute_backoff_seconds(num_attempts):
188 """Compute appropriate wait time between RPC attempts."""
189 jitter_factor = random.uniform(
190 _GRPC_RETRY_JITTER_FACTOR_MIN, _GRPC_RETRY_JITTER_FACTOR_MAX
191 )
192 backoff_secs = (_GRPC_RETRY_EXPONENTIAL_BASE**num_attempts) * jitter_factor
193 return backoff_secs
194
195
196def call_with_retries(api_method, request, clock=None):

Callers 2

retry_handlerFunction · 0.85
call_with_retriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…