From c0ddec6b4bdae95fdce08f27c4ca5fcfdf6e0ad0 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 9 Sep 2025 13:06:40 -0500 Subject: [PATCH] Reduced cleanup time on vod from 10 seconds to 1. --- apps/proxy/vod_proxy/multi_worker_connection_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/proxy/vod_proxy/multi_worker_connection_manager.py b/apps/proxy/vod_proxy/multi_worker_connection_manager.py index d66c5fe5..7577d2af 100644 --- a/apps/proxy/vod_proxy/multi_worker_connection_manager.py +++ b/apps/proxy/vod_proxy/multi_worker_connection_manager.py @@ -822,7 +822,7 @@ class MultiWorkerVODConnectionManager: # Schedule cleanup if no active streams after normal completion if not redis_connection.has_active_streams(): def delayed_cleanup(): - time.sleep(10) # Wait 10 seconds + time.sleep(1) # Wait 1 second if not redis_connection.has_active_streams(): logger.info(f"[{client_id}] Worker {self.worker_id} - Cleaning up idle Redis connection after normal completion") redis_connection.cleanup(connection_manager=self) @@ -841,7 +841,7 @@ class MultiWorkerVODConnectionManager: # Schedule cleanup if no active streams if not redis_connection.has_active_streams(): def delayed_cleanup(): - time.sleep(10) # Wait 10 seconds + time.sleep(1) # Wait 1 second if not redis_connection.has_active_streams(): logger.info(f"[{client_id}] Worker {self.worker_id} - Cleaning up idle Redis connection") redis_connection.cleanup(connection_manager=self)