refactor: 移除心跳机制相关代码,简化服务器管理逻辑,更新文档以反映最新功能和配置

This commit is contained in:
iHeyTang
2025-08-19 14:48:39 +08:00
parent 84e4575717
commit c0354b35d2
6 changed files with 91 additions and 745 deletions

View File

@@ -120,7 +120,6 @@ class ComfyUIServer(Base):
http_url = Column(String, nullable=False)
ws_url = Column(String, nullable=False)
status = Column(String, nullable=False, default="offline")
last_heartbeat = Column(DateTime)
last_health_check = Column(DateTime)
current_tasks = Column(Integer, default=0)
max_concurrent_tasks = Column(Integer, default=1)
@@ -135,7 +134,6 @@ class ComfyUIServer(Base):
"http_url": self.http_url,
"ws_url": self.ws_url,
"status": self.status,
"last_heartbeat": self.last_heartbeat.isoformat() if self.last_heartbeat else None,
"last_health_check": self.last_health_check.isoformat() if self.last_health_check else None,
"current_tasks": self.current_tasks,
"max_concurrent_tasks": self.max_concurrent_tasks,