Skip to content

Commit

Permalink
Update callers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Nov 8, 2015
1 parent 1a10cc2 commit 1ecc6e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions simpleimages/callers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ def _no_action(function, *args, **kwargs):

def celery(function, *args, **kwargs):
'''
Calls ``function`` asynchronously by creatinga a
Calls ``function`` asynchronously by creating a
`shared-task <http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#using-the-shared-task-decorator>`_
with celery.
Requires celery `to be set up first with Django<http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html>`_.
'''
from celery import shared_task
shared_task(function).delay(*args, **kwargs)

0 comments on commit 1ecc6e2

Please sign in to comment.