#76 adds connection checked with timeout

Adds a check for old connections in both the workers and the monitor , every DB_TIMEOUT seconds
This commit is contained in:
Ilan Steemers
2015-09-28 11:42:48 +02:00
parent 4ceee42be9
commit 7075a91d37
3 changed files with 17 additions and 0 deletions
+3
View File
@@ -64,6 +64,9 @@ class Conf(object):
# Failures are always saved
SAVE_LIMIT = conf.get('save_limit', 250)
# Sets the time in seconds to check for stale database connections
DB_TIMEOUT = conf.get('db_timeout', 60)
# Disable the scheduler
SCHEDULER = conf.get('scheduler', True)