mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
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:
parent
6622d4ce7a
commit
cd7d1fc6e7
4 changed files with 32 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue