Add Heartbeat ping on every analysis to see if service is working
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user