From b14dedf1cf665a855b8ccbe5954c769417404b36 Mon Sep 17 00:00:00 2001 From: Asko Oja Date: Wed, 19 Sep 2012 15:42:34 +0300 Subject: [PATCH] adjusted default keepalive_stats from 61 to 300 seconds --- python/pgq/consumer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pgq/consumer.py b/python/pgq/consumer.py index 96d2180b..b3b45d18 100644 --- a/python/pgq/consumer.py +++ b/python/pgq/consumer.py @@ -135,7 +135,7 @@ class Consumer(skytools.DBScript): # in how many seconds to write keepalive stats for idle consumers # this stats is used for detecting that consumer is still running - #keepalive_stats = 61 + #keepalive_stats = 300 """ # by default, use cursor-based fetch @@ -219,7 +219,7 @@ class Consumer(skytools.DBScript): expr = "ev_extra1 in (%s)" % ','.join(tfilt) self.consumer_filter = expr - self.keepalive_stats = self.cf.getint("keepalive_stats", 61) + self.keepalive_stats = self.cf.getint("keepalive_stats", 300) def startup(self): """Handle commands here. __init__ does not have error logging.""" -- 2.39.5