Created
February 24, 2017 16:56
-
-
Save tonywangcn/367fdd1062eabf0801672e171e9ba324 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment