Skip to content

Commit 99a14bc

Browse files
gautamg795Convex, Inc.
authored andcommitted
allow retention delay to be subsecond (#39407)
GitOrigin-RevId: ed0797f13f54dd8e3291db67e822b248e7e76d88
1 parent 8c13390 commit 99a14bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/common/src/knobs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,10 @@ pub static RETENTION_FAIL_ALL_MULTIPLIER: LazyLock<usize> =
474474
/// also used to jitter document retention on startup to avoid a thundering
475475
/// herd.
476476
pub static DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS: LazyLock<Duration> = LazyLock::new(|| {
477-
Duration::from_secs(env_config("DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS", 60))
477+
Duration::from_secs_f64(env_config(
478+
"DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS",
479+
60.0,
480+
))
478481
});
479482

480483
/// Maximum scanned documents within a single run for document retention unless

0 commit comments

Comments
 (0)