Skip to content

Commit

Permalink
Mini-update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sm1ky committed Sep 5, 2024
1 parent f45bc40 commit 2eed73d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ def monitor(self):
)
time.sleep(5)

if node_status["status"] != "connected":
if (
node_status["status"] != "connected"
and self.redis.get(node_redis_key) != b"disconnected"
):
timestamp_failure = datetime.now().strftime(
"%Y-%m-%d %H:%M:%S"
)
Expand Down

0 comments on commit 2eed73d

Please sign in to comment.