[Others] Exit to ensure no residual processes (cpu cache & dp) (#6377)

* [Others] good exit single dp

* [Others] good exit cpu cache dp>1

* [Others] good exit cpu cache dp>1 unittest
This commit is contained in:
CSWYF3634076
2026-02-09 20:38:38 +08:00
committed by GitHub
parent d75b1b8df1
commit ec128068b7
3 changed files with 16 additions and 5 deletions
@@ -353,7 +353,7 @@ class PrefixCacheManager:
# Start additional threads
if cache_config.kvcache_storage_backend or self.num_cpu_blocks > 0:
logger.info("Enable hierarchical cache.")
threading.Thread(target=self.recv_data_transfer_result).start()
threading.Thread(target=self.recv_data_transfer_result, daemon=True).start()
if cache_config.enable_prefix_caching:
threading.Thread(target=self.clear_prefix_cache, daemon=True).start()