Created
January 13, 2014 16:22
-
-
Save johnpaulhayes/8403108 to your computer and use it in GitHub Desktop.
correct task definitions when using tasks by name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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