From 489883b4649a9c24c13572569849e5817fc17143 Mon Sep 17 00:00:00 2001 From: marcsello Date: Thu, 14 May 2020 23:02:52 +0200 Subject: [PATCH] lowered giveup time --- consumerlocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consumerlocator.py b/consumerlocator.py index 1a940b5..f018835 100644 --- a/consumerlocator.py +++ b/consumerlocator.py @@ -80,7 +80,7 @@ class ConsumerLocator: if not self.communicator.checkconsumer(consumer["Host"]): consumer["State"] = False if datetime.datetime.now() - datetime.datetime.fromtimestamp(consumer["LastOk"]) > datetime.timedelta( - hours=1): + seconds=15): removelist.append(consumer) else: consumer["LastOk"] = datetime.datetime.now().timestamp()