From 6734f5b96c20d5dc6b308ac6a6aa1b707acaa675 Mon Sep 17 00:00:00 2001 From: ilan Date: Thu, 21 Jul 2016 16:41:30 +0200 Subject: [PATCH] Removes value check for guard cycle --- django_q/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/django_q/conf.py b/django_q/conf.py index dfa719a..9b7f83a 100644 --- a/django_q/conf.py +++ b/django_q/conf.py @@ -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)