Skip to content

Commit b13df2f

Browse files
goffrieConvex, Inc.
authored andcommitted
Raise backoffs on cron & scheduled jobs (#36344)
GitOrigin-RevId: 55f95b47f2fb05a2ef321c0ee723773ba0fb5602
1 parent 9ae00f3 commit b13df2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/application/src/cron_jobs/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ use crate::{
8282

8383
mod metrics;
8484

85-
const INITIAL_BACKOFF: Duration = Duration::from_millis(10);
86-
const MAX_BACKOFF: Duration = Duration::from_secs(5);
85+
const INITIAL_BACKOFF: Duration = Duration::from_millis(500);
86+
const MAX_BACKOFF: Duration = Duration::from_secs(15);
8787

8888
// Truncate result and log lines for cron job logs since they are only
8989
// used for the dashboard

crates/common/src/knobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub static SCHEDULED_JOB_EXECUTION_PARALLELISM: LazyLock<usize> =
279279

280280
/// Initial backoff in milliseconds on a system error from a scheduled job.
281281
pub static SCHEDULED_JOB_INITIAL_BACKOFF: LazyLock<Duration> =
282-
LazyLock::new(|| Duration::from_millis(env_config("SCHEDULED_JOB_INITIAL_BACKOFF_MS", 10)));
282+
LazyLock::new(|| Duration::from_millis(env_config("SCHEDULED_JOB_INITIAL_BACKOFF_MS", 500)));
283283

284284
/// Max backoff in seconds on a system error from a scheduled job.
285285
/// Scheduled jobs can hit many OCCs, so we may need to slow them down if they

0 commit comments

Comments
 (0)