Skip to content

Instantly share code, notes, and snippets.

@rohit-saharan
Created June 4, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohit-saharan/a84e405c821e2caa4e6c06cf4265d1fc to your computer and use it in GitHub Desktop.
Save rohit-saharan/a84e405c821e2caa4e6c06cf4265d1fc to your computer and use it in GitHub Desktop.
from celery import Celery
app = Celery('tasks')
app.config_from_object('celeryconfig')
@app.task
def add(x, y):
#we're taking the example task you'd see first in celery docs.
return x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment