mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Reduced cleanup time on vod from 10 seconds to 1.
This commit is contained in:
parent
64e500c524
commit
c0ddec6b4b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue