lanny xu commited on
Commit
d6633c7
·
1 Parent(s): af119c2

optimize query speed

Browse files
Files changed (1) hide show
  1. run_debug.py +5 -0
run_debug.py CHANGED
@@ -83,6 +83,11 @@ def run_all_in_one():
83
  if server_process.poll() is not None:
84
  print("❌ 警告:服务器进程意外退出!")
85
  break
 
 
 
 
 
86
 
87
  except KeyboardInterrupt:
88
  print("正在停止服务...")
 
83
  if server_process.poll() is not None:
84
  print("❌ 警告:服务器进程意外退出!")
85
  break
86
+
87
+ # 循环结束后(通常是因为管道关闭),如果没报错,就保持主线程存活
88
+ print("ℹ️ 隧道日志流已结束,正在挂起主线程以保持服务运行...")
89
+ while True:
90
+ time.sleep(1)
91
 
92
  except KeyboardInterrupt:
93
  print("正在停止服务...")