定时调外部任务开启api
This commit is contained in:
6
run_worker.py
Normal file
6
run_worker.py
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from celery_app import app
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("启动Celery Worker...")
|
||||
app.worker_main(['worker', '--loglevel=info','--pool=solo','--concurrency=1'])
|
||||
Reference in New Issue
Block a user