From 19017317f67efcb456a5d272e4287c966e3c8b14 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Tue, 12 Aug 2025 11:48:59 -0500 Subject: [PATCH] Fix invalid import. --- core/tasks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/tasks.py b/core/tasks.py index 8cc26481..8e9dfb66 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -1,4 +1,3 @@ -# yourapp/tasks.py from celery import shared_task from channels.layers import get_channel_layer from asgiref.sync import async_to_sync @@ -639,10 +638,10 @@ def rehash_streams(keys): def cleanup_vod_persistent_connections(): """Clean up stale VOD persistent connections""" try: - from apps.proxy.vod_proxy.connection_manager import connection_manager + from apps.proxy.vod_proxy.connection_manager import VODConnectionManager # Clean up connections older than 30 minutes - connection_manager.cleanup_stale_persistent_connections(max_age_seconds=1800) + VODConnectionManager.cleanup_stale_persistent_connections(max_age_seconds=1800) logger.info("VOD persistent connection cleanup completed") except Exception as e: