fix(proxmox): re-export cleanup_expired_connections from the package
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user