Skip to content

Instantly share code, notes, and snippets.

@n1ywb
Created October 6, 2015 18:07
Show Gist options
  • Save n1ywb/cbeda179aab3372743b9 to your computer and use it in GitHub Desktop.
Save n1ywb/cbeda179aab3372743b9 to your computer and use it in GitHub Desktop.
from celery import Celery
app = Celery('tasks', broker='amqp://guest@localhost//')
@app.task
def add(x, y):
return x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment