82c7d38b59
celery 不支持在 windows 上调用 async 函数。所有要部署在 linux 上,部署待测试。
8 lines
137 B
Python
8 lines
137 B
Python
from celery_server.tasks import asyncRun
|
|
|
|
# r = test.delay(1,2)
|
|
# r2 = test.delay(1,2)
|
|
|
|
r = asyncRun.delay("13809213237")
|
|
print(r.get())
|