summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/errors
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-10 21:24:16 +0200
committerChristian Breunig <christian@breunig.cc>2026-10-10 21:24:16 +0200
commit1d180225536b8e92a05f2b0710a115dd71a40cc1 (patch)
tree7e6f5fdca249c32b410fcf178a11673f83590122 /src/services/api/graphql/session/errors
parentc8d344fd8954035c840a0991a97c6653a72c7c54 (diff)
downloadvyos-1x-1d180225536b8e92a05f2b0710a115dd71a40cc1.tar.gz
vyos-1x-1d180225536b8e92a05f2b0710a115dd71a40cc1.zip
http-api: T9453: wait for the API server to be ready after a reload
A commit that changes an already running HTTP API only signals the server and returns at once. The server then restarts uvicorn asynchronously, and until it listens again requests through nginx fail. A fixed one-second sleep was meant to cover this but is too short on slow systems, making the https smoketest fail intermittently and API clients see errors right after a commit. The server now creates a readiness marker once it accepts requests. The commit clears the marker before reloading and waits for it to reappear, warning if that takes longer than 30 seconds.
Diffstat (limited to 'src/services/api/graphql/session/errors')
0 files changed, 0 insertions, 0 deletions