mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user