mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 00:58:12 +08:00
#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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user