From 60269531326d958bc82b46da5c861ae940f582a0 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Wed, 6 Apr 2016 20:33:26 +0200 Subject: [PATCH] Fixes typo in Save limit --- django_q/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_q/cluster.py b/django_q/cluster.py index e88abf3..33ee040 100644 --- a/django_q/cluster.py +++ b/django_q/cluster.py @@ -399,7 +399,7 @@ def save_task(task, broker): Saves the task package to Django or the cache """ # SAVE LIMIT < 0 : Don't save success - if not task.get('save', Conf.SAVE_LIMIT > 0) and task['success']: + if not task.get('save', Conf.SAVE_LIMIT >= 0) and task['success']: return # async next in a chain if task.get('chain', None):