mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
fix(ume): block WSS until startup REST alarm sync completes
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7a729413ab
commit
e62f4f2c74
3 changed files with 39 additions and 47 deletions
|
|
@ -53,8 +53,8 @@ _LOOP_STATUS_COOLDOWN_S = 60.0
|
|||
_WS_IGNORE_COOLDOWN_S = 60.0
|
||||
|
||||
# Blocks WSS connect until startup REST sync of current alarms completes (see main.on_startup).
|
||||
# Default closed (clear): WSS must not write until main opens the gate after REST snapshot.
|
||||
_STARTUP_ALARM_SYNC_GATE = threading.Event()
|
||||
_STARTUP_ALARM_SYNC_GATE.set()
|
||||
|
||||
|
||||
def begin_startup_alarm_sync_gate() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue