Skip to content

Commit

Permalink
Merge pull request #159 from Koed00/dev
Browse files Browse the repository at this point in the history
Fixes typo in custom broker handler
  • Loading branch information
Koed00 committed Apr 7, 2016
2 parents cbf6fc5 + 6026953 commit a702408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_q/brokers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_broker(list_key=Conf.PREFIX):
module, func = Conf.BROKER_CLASS.rsplit('.', 1)
m = importlib.import_module(module)
broker = getattr(m, func)
return broker(list_key=list)
return broker(list_key=list_key)
# disque
elif Conf.DISQUE_NODES:
from brokers import disque
Expand Down
2 changes: 1 addition & 1 deletion django_q/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a702408

Please sign in to comment.