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.
15 lines
449 B
Python
15 lines
449 B
Python
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__ = [
|
|
'ProxmoxClient',
|
|
'get_proxmox_resources',
|
|
'_run_in_executor',
|
|
'clear_all_cache',
|
|
'clear_server_cache',
|
|
'cleanup_expired_connections',
|
|
'ParsedNic',
|
|
'parse_net_string',
|
|
'parse_guest_nics',
|
|
]
|