Skip to content

Commit

Permalink
Fix healthcheck (hive->hafd schema change)
Browse files Browse the repository at this point in the history
  • Loading branch information
emfrias committed Nov 11, 2024
1 parent 05eb04c commit 75d167a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/block-processing-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ STARTUP_TIME="$(cat /tmp/block_processing_startup_time.txt)"
CHECK="SET TIME ZONE 'UTC'; \
SELECT ((now() - (SELECT last_active_at FROM hafd.contexts WHERE name = 'hivemind_app')) < interval '1 minute' \
AND (SELECT last_active_at FROM hafd.contexts WHERE name = 'hivemind_app') > '${STARTUP_TIME}'::timestamp) OR \
((SELECT current_block_num FROM hafd.contexts WHERE name = 'hivemind_app') >= (SELECT consistent_block FROM hive.irreversible_data))"
((SELECT current_block_num FROM hafd.contexts WHERE name = 'hivemind_app') >= (SELECT consistent_block FROM hafd.irreversible_data))"

# the docker container probably won't have a locale set, do this to suppress the warning
export LC_ALL=C
Expand Down

0 comments on commit 75d167a

Please sign in to comment.