Skip to content

Instantly share code, notes, and snippets.

@artemrys
Last active January 10, 2019 00:15
Show Gist options
  • Save artemrys/67157575bed678b6ac9e52f674e9f70e to your computer and use it in GitHub Desktop.
Save artemrys/67157575bed678b6ac9e52f674e9f70e to your computer and use it in GitHub Desktop.
Simple celery application
from celery import Celery
app = Celery(
"app",
broker="amqp://guest@localhost//",
backend="rpc",
)
@app.task
def add(x, y):
return x + y
if __name__ == '__main__':
app.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment