fix: 排队进程在安装完成后再开始执行

This commit is contained in:
2026-10-30 10:35:26 +08:00
parent 613ed3a8c7
commit c46b06b536
+6 -7
View File
@@ -17,15 +17,14 @@ def main() -> None:
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
init_db()
start_background()
if postgres_conninfo():
from app.tasks.queue import serve
serve()
return
import time
while True:
time.sleep(3600)
while not postgres_conninfo():
time.sleep(2)
init_db()
from app.tasks.queue import serve
serve()
if __name__ == "__main__":