atuinsh/atuin · error
thread pool failed to shutdown properly
Error message
thread pool failed to shutdown properly
What it means
Error "thread pool failed to shutdown properly" thrown in atuinsh/atuin.
Source
Thrown at crates/atuin-nucleo/src/lib.rs:516
}
let cleared = self.state.cleared();
if cleared {
inner.items = self.items.clone();
}
self.pool.spawn(move || unsafe { inner.run(status, cleared) })
}
Status { changed, running }
}
}
impl<T: Sync + Send> Drop for Nucleo<T> {
fn drop(&mut self) {
// we ensure the worker quits before dropping items to ensure that
// the worker can always assume the items outlive it
self.canceled.store(true, atomic::Ordering::Relaxed);
let lock = self.worker.try_lock_for(Duration::from_secs(1));
if lock.is_none() {
unreachable!("thread pool failed to shutdown properly")
}
}
}
View on GitHub (pinned to 15fe1318f1)
Solutions
- Check the log for a stuck worker task; retry the operation and report the issue if it repeats.
When it happens
Trigger: Fires when the nucleo worker thread pool does not terminate cleanly during shutdown of the search engine.
Common situations: See trigger scenarios.
AI-assisted analysis of atuinsh/atuin@15fe1318f1 (2026-08-19).
Data as JSON: /api/errors/391583f180c487cd.
Report an issue: GitHub.