fix(server): 移除 web_server 兼容入口与验收脚本的 socketio 残留引用
Socket.IO 整体移除后,web_server.py 仍从 server.app 导入已不存在的 socketio 导致兼容入口启动即 ImportError;test/runtime_standalone_checks.py 中 ext.socketio 断言同样失效,一并清理。 Co-authored-by: Astrion powered by Kimi-K3 <astrion-agent@users.noreply.github.com>
This commit is contained in:
parent
5459d82637
commit
281be248c2
@ -186,11 +186,8 @@ def check_lifecycle():
|
||||
|
||||
assert not is_main_task_gate_busy(terminal), "任务终态后门闸必须释放(否则下一任务无法受理)"
|
||||
|
||||
# 全程无 Flask app 初始化(socketio 未绑定 app)
|
||||
# 全程无 Flask app 初始化
|
||||
assert not has_app_context(), "验收结束仍应无 Flask app 上下文"
|
||||
import server.extensions as ext
|
||||
|
||||
assert getattr(ext.socketio, "server", None) is None, "socketio 不应初始化 server(无 Web 应用装配)"
|
||||
|
||||
|
||||
def check_chain():
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
import warnings
|
||||
from server.app import (
|
||||
app,
|
||||
socketio,
|
||||
run_server,
|
||||
parse_arguments,
|
||||
resource_busy_page,
|
||||
@ -14,7 +13,6 @@ from server.app import (
|
||||
|
||||
__all__ = [
|
||||
"app",
|
||||
"socketio",
|
||||
"run_server",
|
||||
"parse_arguments",
|
||||
"resource_busy_page",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user