fix(webui): retry event pump priming until the state store answers
archie-ui binds before archie-state-store is guaranteed to be listening, so the first prime is routinely refused. PumpEvents returned on that error, which left the activity feed history-only for the life of the process. Prime now retries with capped backoff and gives up only when the context ends. Orders archie-ui.service after archie-state-store.service as well, which narrows the window without closing it: After= sequences the start, it does not wait for the listener.
This commit is contained in:
1 parent
d3f72a4b20
commit
13d32f34b0
3 files changed
+101
-2
No files matched your search
@@ -97,7 +97,8 @@ the dashboard's health endpoint behind the token. A watchdog can curl
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Archie UI Service
|
||||
After=network.target
|
||||
After=network.target archie-state-store.service
|
||||
Wants=archie-state-store.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
@@ -121,6 +122,11 @@ GATEWAY_TOKEN=... # presented to archie-gateway
|
||||
STATE_STORE_TOKEN=... # presented to archie-state-store
|
||||
```
|
||||
|
||||
`After=` orders the start, it does not wait for the store to bind. The UI
|
||||
process closes that gap itself: its event pump retries priming with backoff
|
||||
until the State Store answers, so the activity feed goes live once the store
|
||||
is up rather than staying history-only until the next restart.
|
||||
|
||||
```ini
|
||||
ExecStart=%h/.local/bin/archie-ui -config %h/.config/archie/config.toml -token-file %h/.local/share/archie/web-token
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user