mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 13:48:12 +08:00
Removes value check for guard cycle
This commit is contained in:
+2
-4
@@ -71,11 +71,9 @@ class Conf(object):
|
|||||||
# Failures are always saved
|
# Failures are always saved
|
||||||
SAVE_LIMIT = conf.get('save_limit', 250)
|
SAVE_LIMIT = conf.get('save_limit', 250)
|
||||||
|
|
||||||
# Guard loop sleep in seconds
|
# Guard loop sleep in seconds. Should be between 0 and 60 seconds.
|
||||||
GUARD_CYCLE = conf.get('guard_cycle', 0.5)
|
GUARD_CYCLE = conf.get('guard_cycle', 0.5)
|
||||||
if GUARD_CYCLE <= 0 or GUARD_CYCLE >= 60:
|
|
||||||
raise ValueError('`guard_cycle` must be greater than 0 and less than 60 sec')
|
|
||||||
|
|
||||||
# Disable the scheduler
|
# Disable the scheduler
|
||||||
SCHEDULER = conf.get('scheduler', True)
|
SCHEDULER = conf.get('scheduler', True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user