mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-05 16:53:14 -04:00
gitignore and a sleep time for liveness checker
This commit is contained in:
@@ -6,3 +6,5 @@ app/statsmetrics
|
|||||||
app/statsmetrics.txt
|
app/statsmetrics.txt
|
||||||
app/threads
|
app/threads
|
||||||
app/threads.txt
|
app/threads.txt
|
||||||
|
app/vrametrics
|
||||||
|
app/vrametrics.txt
|
||||||
|
|||||||
@@ -638,6 +638,7 @@ webserver_thread = start_thread(WebServer)
|
|||||||
# loop indefinitely
|
# loop indefinitely
|
||||||
while True:
|
while True:
|
||||||
# check if any thread has crashed
|
# check if any thread has crashed
|
||||||
|
sleep(2)
|
||||||
if not probe_thread.is_alive():
|
if not probe_thread.is_alive():
|
||||||
# restart the thread
|
# restart the thread
|
||||||
log.error("Probe Thread Died - Restarting")
|
log.error("Probe Thread Died - Restarting")
|
||||||
|
|||||||
Reference in New Issue
Block a user