Skip to content

Instantly share code, notes, and snippets.

@iiogmgo
Created October 8, 2015 09:20
Show Gist options
  • Save iiogmgo/8da595a0c696920b3f1a to your computer and use it in GitHub Desktop.
Save iiogmgo/8da595a0c696920b3f1a to your computer and use it in GitHub Desktop.
from celery import Celery
app = Celery('tasks', broker='amqp://')
@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