Fixes typo in Save limit

This commit is contained in:
Ilan Steemers
2016-04-06 20:33:26 +02:00
parent 3a57ab1b1b
commit 6026953132
+1 -1
View File
@@ -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):