Wait indefinitely for UME topology dumps while the connection stays up.

Default topology read timeout to 0 (no deadline) and extend stale-running reap to 24h so long TopoNodes/TopologicalLinks pulls are not killed mid-stream.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-06 19:04:13 +08:00
parent 6622d4ce7a
commit cd7d1fc6e7
4 changed files with 32 additions and 13 deletions

View file

@ -58,8 +58,10 @@ class Settings(BaseSettings):
ume_sync_inventory_every_hours: int = 48
ume_sync_topology_auto_enabled: bool = True
ume_sync_topology_every_hours: int = 24
ume_topology_timeout_s: float = 600.0
ume_sync_topology_stale_running_sec: int = 1800
# Topology REST dump: 0 = no read timeout (wait while the connection stays up).
ume_topology_timeout_s: float = 0.0
# Do not reap a still-running topology pull until this age (long UME dumps).
ume_sync_topology_stale_running_sec: int = 86400
ume_token_path: str = "/restconf/operations/zte-security:oauth_token"
ume_token_handshake_path: str = "/restconf/operations/zte-security:oauth_handshake"
ume_token_logout_path: str = "/restconf/operations/zte-security:oauth_token"