MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RetryConfig

Class RetryConfig

tensorflow/core/platform/cloud/retrying_utils.h:25–42  ·  view source on GitHub ↗

Default time before reporting failure: ~100 seconds.

Source from the content-addressed store, hash-verified

23
24// Default time before reporting failure: ~100 seconds.
25struct RetryConfig {
26 RetryConfig(int64 init_delay_time_us = 100 * 1000,
27 int64 max_delay_time_us = 32 * 1000 * 1000,
28 int max_retries = 10) {
29 this->init_delay_time_us = init_delay_time_us;
30 this->max_delay_time_us = max_delay_time_us;
31 this->max_retries = max_retries;
32 }
33
34 // In case of failure, every call will be retried max_retries times.
35 int max_retries;
36
37 // Initial backoff time
38 int64 init_delay_time_us;
39
40 // Maximum backoff time in microseconds.
41 int64 max_delay_time_us;
42};
43
44class RetryingUtils {
45 public:

Callers 8

TESTFunction · 0.85
TEST_FFunction · 0.85
RetryingGcsFileSystemMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 6

TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68