Skip to content

Commit

Permalink
admin: fix crond
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Mar 12, 2024
1 parent b117ef9 commit 591cc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/cronjob_get_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ for service_name in $RPC_SERVICES; do
tmp_str=""
while read -r ip_addr || [[ -n $ip_addr ]]; do
status_code=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 3 --max-time 3 "http://$ip_addr/healthcheck")
data_size=$(curl -s "http://$ip_addr/data_size" |jq -r .data_size)
data_size=$(curl -s -connect-timeout 3 --max-time 3 "http://$ip_addr/data_size" |jq -r .data_size)

# figure out hostname of container
hostname=$(dig +short -x $ip_addr)
Expand Down

0 comments on commit 591cc29

Please sign in to comment.