You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retire the previous background worker pool when resetting the executor #404
Resetting Cachier's background executor replaces its reference without calling shutdown() on the previous ThreadPoolExecutor. An application that updates the worker setting can leave old idle workers alive and old pools still accepting submissions until garbage collection cleans them up.
The previous executor should stop accepting new submissions while its running and queued calculations finish. Reset should not wait for long-running cache calculations. A regression test reproduces the missing retirement; a proposed fix also preserves the original pool if constructing its replacement fails. This isolates item 15 in #367.
Activity