mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-28 13:38:11 +08:00
Fixes typo in Save limit
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user