From a752a6ecec368ce39fae052bc9d0c6c079ec04f0 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 12 Feb 2026 17:42:59 +0000 Subject: [PATCH] chore: reduce concurrency of memories --- codex-rs/core/src/memories/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/src/memories/mod.rs b/codex-rs/core/src/memories/mod.rs index 355ac9c94d1..30d6c427964 100644 --- a/codex-rs/core/src/memories/mod.rs +++ b/codex-rs/core/src/memories/mod.rs @@ -29,9 +29,9 @@ mod phase_one { /// Prompt used for phase 1. pub(super) const PROMPT: &str = include_str!("../../templates/memories/stage_one_system.md"); /// Maximum number of rollout candidates processed per startup pass. - pub(super) const MAX_ROLLOUTS_PER_STARTUP: usize = 64; + pub(super) const MAX_ROLLOUTS_PER_STARTUP: usize = 8; /// Concurrency cap for startup memory extraction and consolidation scheduling. - pub(super) const CONCURRENCY_LIMIT: usize = 64; + pub(super) const CONCURRENCY_LIMIT: usize = 8; /// Fallback stage-1 rollout truncation limit (tokens) when model metadata /// does not include a valid context window. pub(super) const DEFAULT_STAGE_ONE_ROLLOUT_TOKEN_LIMIT: usize = 150_000; @@ -68,7 +68,7 @@ mod phase_two { /// job. pub(super) const JOB_RETRY_DELAY_SECONDS: i64 = 3_600; /// Heartbeat interval (seconds) for phase-2 running jobs. - pub(super) const JOB_HEARTBEAT_SECONDS: u64 = 30; + pub(super) const JOB_HEARTBEAT_SECONDS: u64 = 90; } mod metrics {