mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 06:08:12 +08:00
#76 checks for stale connections always
It turns out that checking stale connections on a timer takes between 1-2 times as long as just checking them always. This also has the benefit of catching timeouts that happen between timer loops.
This commit is contained in:
@@ -64,9 +64,6 @@ 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