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 ===
|
||||
if [ "${NAVIDROME_PID}" -eq 0 ] || ! kill -0 "${NAVIDROME_PID}" 2>/dev/null; then
|
||||
start_app
|
||||
register_service
|
||||
# register_service
|
||||
fi
|
||||
pass_ttl
|
||||
# pass_ttl
|
||||
else
|
||||
# === WE ARE REPLICA ===
|
||||
if [ "${NAVIDROME_PID}" -gt 0 ]; then
|
||||
echo "Lost leadership. Demoting..."
|
||||
stop_app
|
||||
deregister_service
|
||||
# deregister_service
|
||||
fi
|
||||
fi
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user