File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { parseIntEnv } from './api/metadata'
44export const DEFAULT_MAX_RETRIES = 3
55
66/** Base for the exponential backoff, in milliseconds. */
7- const DEFAULT_BACKOFF_BASE_MS = 500
7+ const DEFAULT_BACKOFF_BASE_MS = 100
88/** Upper bound for a single backoff delay, in milliseconds. */
99const DEFAULT_BACKOFF_CAP_MS = 8_000
1010/**
Original file line number Diff line number Diff line change 1818#: Default number of *retries* (i.e. attempts after the first).
1919DEFAULT_MAX_RETRIES = 3
2020
21- _BACKOFF_BASE_SEC = 0.5
21+ _BACKOFF_BASE_SEC = 0.1
2222_BACKOFF_CAP_SEC = 8.0
2323
2424#: HTTP methods that are idempotent per the HTTP spec and can be retried on any
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def make_error(error):
111111
112112
113113# Exponential backoff with full jitter, in seconds.
114- _BACKOFF_BASE_SEC = 0.5
114+ _BACKOFF_BASE_SEC = 0.1
115115_BACKOFF_CAP_SEC = 8.0
116116
117117
You can’t perform that action at this time.
0 commit comments