Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import absolute_import
- from test_celery.celery import app
- import time
- @app.task
- def longtime_add(x,y):
- print 'long time task begins'
- time.sleep(5)
- print 'long time task finished'
- return x + y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement