mirror of https://github.com/jumpserver/jumpserver
9 lines
246 B
Python
9 lines
246 B
Python
|
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
|