fix(proxmox): re-export cleanup_expired_connections from the package
Some checks failed
Backend Tests / pytest (Python 3.12) (push) Failing after 1m44s
Deploy to Production / Trigger production update (push) Failing after 9s
SonarCloud / SonarCloud Analysis (push) Failing after 2m48s

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.
This commit is contained in:
markmorado
2026-08-24 03:30:39 +05:00
parent d5c845f4d3
commit 33e5620311

View File

@@ -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',