Browse Source

调整

c1
H Vs 1 month ago
parent
commit
4a19685bb5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      run.py

+ 2
- 2
run.py View File

@@ -20,8 +20,8 @@ def start_celery():
if __name__ == "__main__": if __name__ == "__main__":
# 启动 FastAPI 和 Celery # 启动 FastAPI 和 Celery
fastapi_process = start_fastapi() fastapi_process = start_fastapi()
# celery_process = start_celery() # 如果需要启动 Celery,取消注释
# celery_process = start_celery()


# 等待子进程完成 # 等待子进程完成
fastapi_process.wait() fastapi_process.wait()
# celery_process.wait() # 如果需要等待 Celery,取消注释
# celery_process.wait()

Loading…
Cancel
Save