Skip to content

Commit

Permalink
add mising kwarg for local tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Jun 6, 2013
1 parent 8a987bf commit f2c0edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kuyruk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from kuyruk.task import Task
from kuyruk.config import Config

__version__ = '0.16.0'
__version__ = '0.16.1'

try:
# not available in python 2.6
Expand Down
4 changes: 2 additions & 2 deletions kuyruk/kuyruk.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, config=None, task_class=Task):
self.config.from_object(config)

def task(self, queue='kuyruk', eager=False, retry=0, task_class=None,
max_run_time=None):
max_run_time=None, local=False):
"""
Wrap functions with this decorator to convert them to background
tasks. After wrapping, calling the function will send a message to
Expand All @@ -57,7 +57,7 @@ def inner(f):
task_class_ = task_class or self.task_class
return task_class_(
f, self,
queue=queue_, eager=eager,
queue=queue_, eager=eager, local=local,
retry=retry, max_run_time=max_run_time)
return inner

Expand Down

0 comments on commit f2c0edd

Please sign in to comment.