From 8352ca27e027df5700b2d4843ed61b6cd7723b25 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 2 Oct 2026 00:28:28 -0400 Subject: [PATCH] worker: stop caching missing store paths across sibling workers --- crates/evix/src/worker.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/evix/src/worker.rs b/crates/evix/src/worker.rs index b273e0d..9a7d7f1 100644 --- a/crates/evix/src/worker.rs +++ b/crates/evix/src/worker.rs @@ -46,6 +46,10 @@ pub async fn run() -> Result<()> { debug!("worker initialized"); let ctx = Arc::new(Context::new().context("Nix context")?); + // Nix caches misses for an hour, hiding paths sibling workers just added. + ctx + .set_setting("narinfo-cache-negative-ttl", "0") + .context("disabling the negative path info cache")?; let store = Arc::new(Store::open(&ctx, None).context("Nix store")?); let eval_options = crate::eval::EvalOptions::from(&config); let state = build_eval_state(&ctx, &store)?;