Skip to content
Snippets Groups Projects
Commit a83ec068 authored by Michal Zander's avatar Michal Zander
Browse files

Fix for issue #9

parent cfaad4c1
No related branches found
No related tags found
2 merge requests!83Merge develop to master for release,!58Bump haf, fix healthchecker issue
Pipeline #110699 passed
......@@ -17,10 +17,10 @@ EOF
function wait-for-rt-startup() {
if command -v psql &> /dev/null
then
until psql "$POSTGRES_ACCESS" --quiet --tuples-only --command="$COMMAND" | grep 0 &>/dev/null
until psql "$POSTGRES_ACCESS" --quiet --tuples-only --command="$COMMAND" | grep 1 &>/dev/null
do
echo "$MESSAGE"
sleep 3
sleep 20
done
else
echo "Please install psql before running this script."
......@@ -29,8 +29,8 @@ function wait-for-rt-startup() {
}
#shellcheck disable=SC2089
COMMAND="SELECT CASE WHEN irreversible_block = 5000000 THEN 0 ELSE 1 END FROM hafd.contexts WHERE name = 'reptracker_app';"
MESSAGE="Waiting for Balance Tracker to finish processing blocks..."
COMMAND="SELECT hive.is_app_in_sync('reptracker_app')::INT;"
MESSAGE="Waiting for Reputation Tracker to finish processing blocks..."
while [ $# -gt 0 ]; do
case "$1" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment