mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
246 B
9 lines
246 B
8 years ago
|
from .tasks import longtime_add
|
||
|
import time
|
||
|
|
||
|
result = longtime_add.delay(1,2)
|
||
|
print 'Task finished? ', result.ready()
|
||
|
print 'Task result: ', result.result
|
||
|
time.sleep(10)
|
||
|
print 'Task finished? ', result.ready()
|
||
|
print 'Task result: ', result.result
|