Skip to content

Instantly share code, notes, and snippets.

@johnpaulhayes
Created January 13, 2014 16:22
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnpaulhayes/8403108 to your computer and use it in GitHub Desktop.
Save johnpaulhayes/8403108 to your computer and use it in GitHub Desktop.
correct task definitions when using tasks by name.
from celery_app import Celery
celery = Celery("tasks", backend="amqp", broker="amqp://guest@localhost")
@celery.task(name='test_task')
def test_task():
return "boom!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment