test(entrypoint): disable consul registration to isolate leadership issue
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -129,15 +129,15 @@ while true; do
|
|||||||
# === WE ARE PRIMARY ===
|
# === WE ARE PRIMARY ===
|
||||||
if [ "${NAVIDROME_PID}" -eq 0 ] || ! kill -0 "${NAVIDROME_PID}" 2>/dev/null; then
|
if [ "${NAVIDROME_PID}" -eq 0 ] || ! kill -0 "${NAVIDROME_PID}" 2>/dev/null; then
|
||||||
start_app
|
start_app
|
||||||
register_service
|
# register_service
|
||||||
fi
|
fi
|
||||||
pass_ttl
|
# pass_ttl
|
||||||
else
|
else
|
||||||
# === WE ARE REPLICA ===
|
# === WE ARE REPLICA ===
|
||||||
if [ "${NAVIDROME_PID}" -gt 0 ]; then
|
if [ "${NAVIDROME_PID}" -gt 0 ]; then
|
||||||
echo "Lost leadership. Demoting..."
|
echo "Lost leadership. Demoting..."
|
||||||
stop_app
|
stop_app
|
||||||
deregister_service
|
# deregister_service
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|||||||
Reference in New Issue
Block a user