mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
Cloud Requirements: increase timeout and retries (#10631)
Add retries and an increased-length timeout for loading Cloud Requirements. Co-authored-by: alexsong-oai <alexsong@openai.com>
This commit is contained in:
1 parent
cddfd1e675
commit
1f47e08d66
2 files changed
+174
-20
No files matched your search
@@ -37,7 +37,7 @@ macro_rules! feedback_tags {
|
||||
};
|
||||
}
|
||||
|
||||
pub(crate) fn backoff(attempt: u64) -> Duration {
|
||||
pub fn backoff(attempt: u64) -> Duration {
|
||||
let exp = BACKOFF_FACTOR.powi(attempt.saturating_sub(1) as i32);
|
||||
let base = (INITIAL_DELAY_MS as f64 * exp) as u64;
|
||||
let jitter = rand::rng().random_range(0.9..1.1);
|
||||
|
||||
Reference in new issue
Block a user