Skip to content

Instantly share code, notes, and snippets.

@simondlr
Created Jun 5, 2012
Embed
What would you like to do?
tasks.py
from djcelery import celery
@celery.task
def add(x,y):
return x + y
@celery.task
def sleeptask(i):
from time import sleep
sleep(i)
return i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment