From 33e5620311786220d49b7df31a277bde2f747f01 Mon Sep 17 00:00:00 2001 From: markmorado Date: Mon, 24 Aug 2026 03:30:39 +0500 Subject: [PATCH] fix(proxmox): re-export cleanup_expired_connections from the package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function lives in client.py but was missing from the package __init__, unlike its neighbours clear_all_cache and clear_server_cache. The monitoring worker imports it from app.proxmox inside a try/except ImportError, so nothing crashed — the hourly job was silently skipped with "Proxmox cache cleanup not available" and the connection cache was never pruned, keeping entries older than an hour alive until restart. --- backend/app/proxmox/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/proxmox/__init__.py b/backend/app/proxmox/__init__.py index 7483d26..fef611e 100644 --- a/backend/app/proxmox/__init__.py +++ b/backend/app/proxmox/__init__.py @@ -1,4 +1,4 @@ -from .client import ProxmoxClient, get_proxmox_resources, _run_in_executor, clear_all_cache, clear_server_cache +from .client import ProxmoxClient, get_proxmox_resources, _run_in_executor, clear_all_cache, clear_server_cache, cleanup_expired_connections from .net_parser import ParsedNic, parse_net_string, parse_guest_nics __all__ = [ @@ -7,6 +7,7 @@ __all__ = [ '_run_in_executor', 'clear_all_cache', 'clear_server_cache', + 'cleanup_expired_connections', 'ParsedNic', 'parse_net_string', 'parse_guest_nics',