[READ-ONLY] Mirror of https://github.com/shuuji3/celery-tutorial.
0

Configure Feed

Select the types of activity you want to include in your feed.

celery-tutorial / tasks.py
208 B 14 lines
1from celery import Celery 2import time 3 4app = Celery('tasks') 5app.config_from_object('celeryconfig') 6 7@app.task 8def add(x, y): 9 return x + y 10 11@app.task 12def sleep(t): 13 time.sleep(t) 14 return 'finished'