Add Heartbeat ping on every analysis to see if service is working

This commit is contained in:
Phill Price
2022-09-29 17:57:40 +01:00
parent fc71576737
commit ea5d9d70eb
2 changed files with 28 additions and 17 deletions
+6
View File
@@ -163,6 +163,12 @@ DATABASE_LANG=en
## your installation is behind by, relative to the Github repo. This number
## appears next to "Tools" when you're 50 or more commits behind.
## HEARTBEAT_URL is a location to ping every time some analysis is done
## no information is sent to the the URL, its a heart beat to show that the
## analysis is continuing
HEARBEAT_URL=
SILENCE_UPDATE_INDICATOR=0
## These are just for debugging
+5
View File
@@ -152,6 +152,11 @@ ${BIRDWEATHER_ID_LOG}
${INCLUDEPARAM} \
${EXCLUDEPARAM} \
${BIRDWEATHER_ID_PARAM}
if [ ! -z $HEARTBEAT_URL ]; then
echo "Performing Heartbeat"
IP=`curl -s ${HEARTBEAT_URL}`
echo "Heartbeat: $IP"
fi
done
}