mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 10:48: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
|
Saves the task package to Django or the cache
|
||||||
"""
|
"""
|
||||||
# SAVE LIMIT < 0 : Don't save success
|
# 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
|
return
|
||||||
# async next in a chain
|
# async next in a chain
|
||||||
if task.get('chain', None):
|
if task.get('chain', None):
|
||||||
|
|||||||
Reference in New Issue
Block a user