fix(#970,#973): retry gateway reload on failure; always enable HIVE_WEB_SOCKET
This commit is contained in:
parent
5cf18ad7c7
commit
b83edc40c6
5 changed files with 88 additions and 82 deletions
|
|
@ -261,12 +261,12 @@ async fn cmd_serve(
|
|||
// operator-initiated transient state.
|
||||
crash_watch::spawn(coord.clone());
|
||||
// Agent-sockets marker poll: re-fires `agent_sockets::write`
|
||||
// every 10s so the JSON picks up newly-bound `.bound` markers
|
||||
// (a sub-agent flipping `hyperhive.web.useUnixSocket = true`,
|
||||
// rebuilding, then having its harness bind the socket) without
|
||||
// needing an explicit hook on each container start. write() is
|
||||
// idempotent so steady-state cost is one stat per agent per
|
||||
// tick. See `docs/gateway.md::Per-agent unix-socket upstream`.
|
||||
// and `gateway_nginx::write` every 10s so the JSON and nginx
|
||||
// config pick up newly-bound `.bound` markers after a rebuild.
|
||||
// Also retries any pending gateway nginx reload that failed on
|
||||
// the previous tick. write() is idempotent so steady-state cost
|
||||
// is one stat per agent per tick.
|
||||
// See `docs/gateway.md::Per-agent unix-socket upstream`.
|
||||
agent_sockets::spawn_poll();
|
||||
// Reminder scheduler: drains due reminders + handles
|
||||
// file_path payload persistence. See reminder_scheduler.rs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue