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

@ -109,7 +109,7 @@ def _ume_ne_id_for_topo_node(*, node_type: str, name: str) -> str:
def _stale_running_sec() -> int:
return max(300, int(getattr(settings, "ume_sync_topology_stale_running_sec", 1800) or 1800))
return max(3600, int(getattr(settings, "ume_sync_topology_stale_running_sec", 86400) or 86400))
def fail_stale_topology_running_jobs(db: Session | None = None) -> int: