Skip to content

Commit 6420ff6

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/frontend/vite-015fd670ef
2 parents b3b989c + 9d9ab4e commit 6420ff6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

crates/tasks/src/new_queue.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,15 @@ const MAX_CONCURRENT_JOBS: usize = 10;
172172
const MAX_JOBS_TO_FETCH: usize = 5;
173173

174174
// How many attempts a job should be retried
175-
const MAX_ATTEMPTS: usize = 5;
175+
const MAX_ATTEMPTS: usize = 10;
176176

177177
/// Returns the delay to wait before retrying a job
178178
///
179-
/// Uses an exponential backoff: 1s, 2s, 4s, 8s, 16s
179+
/// Uses an exponential backoff: 5s, 10s, 20s, 40s, 1m20s, 2m40s, 5m20s, 10m50s,
180+
/// 21m40s, 43m20s
180181
fn retry_delay(attempt: usize) -> Duration {
181182
let attempt = u32::try_from(attempt).unwrap_or(u32::MAX);
182-
Duration::milliseconds(2_i64.saturating_pow(attempt) * 1000)
183+
Duration::milliseconds(2_i64.saturating_pow(attempt) * 5_000)
183184
}
184185

185186
type JobResult = Result<(), JobError>;

deny.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ ignore = [
1414
# RSA key extraction "Marvin Attack". This is only relevant when using
1515
# PKCS#1 v1.5 encryption, which we don't
1616
"RUSTSEC-2023-0071",
17+
18+
# `paste`, as used by `aws-lc-rs` is unmaintained, but we're not concerned
19+
# about it having a security vulnerability
20+
"RUSTSEC-2024-0436",
21+
22+
# rust-protobuf has an infinite recursion issue when parsing inputs. We only
23+
# use protobuf for opentelemetry output, so we are not affected
24+
"RUSTSEC-2024-0437",
1725
]
1826

1927
[licenses]

0 commit comments

Comments
 (0)