mirror of https://github.com/OpenVidu/openvidu.git
openvidu-dashboard: the contract check stops the server as soon as it initializes the database
The OpenVidu server no longer ignores a SIGTERM received while it starts (OpenVidu/openvidu-livekit 6d435287).chore/update-openvidu-actions-1.0.25
parent
12e9dc6aee
commit
b20fad10c5
|
|
@ -107,13 +107,6 @@ grep -q "analytics database initialized" "$WORK/server.log" || {
|
||||||
cat "$WORK/server.log" >&2
|
cat "$WORK/server.log" >&2
|
||||||
fail "the OpenVidu server did not initialize the analytics database"
|
fail "the OpenVidu server did not initialize the analytics database"
|
||||||
}
|
}
|
||||||
# LiveKit's Start marks the server running 100 ms after it starts serving, and a SIGTERM before that is ignored until a
|
|
||||||
# second one: stop it only once it answers HTTP and that window has passed.
|
|
||||||
for _ in $(seq 1 30); do
|
|
||||||
curl -sf -o /dev/null "http://127.0.0.1:$SERVER_HTTP_PORT/" && break
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
sleep 1
|
|
||||||
# Bounded, so that a server that does not stop on SIGTERM fails here with its log instead of at the job timeout.
|
# Bounded, so that a server that does not stop on SIGTERM fails here with its log instead of at the job timeout.
|
||||||
kill "$SERVER_PID"
|
kill "$SERVER_PID"
|
||||||
for _ in $(seq 1 20); do
|
for _ in $(seq 1 20); do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue