Removes value check for guard cycle

This commit is contained in:
ilan
2016-07-21 16:41:30 +02:00
parent 09a9511341
commit 6734f5b96c
+2 -4
View File
@@ -71,11 +71,9 @@ class Conf(object):
# Failures are always saved
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)
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
SCHEDULER = conf.get('scheduler', True)