定时调外部任务开启api

This commit is contained in:
mark.tian
2025-12-09 15:16:37 +08:00
parent 1556b5a586
commit c83db9b0da
24 changed files with 1178 additions and 2 deletions

6
run_worker.py Normal file
View 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'])