From a084031af05fffd9eb7b6425821899c250ec8f93 Mon Sep 17 00:00:00 2001 From: yxz321 Date: Thu, 21 May 2026 15:59:17 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E4=BD=BF=E7=94=A8=E8=B0=83=E5=BA=A6?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=8E=A5=E5=8F=A3=E5=81=9A=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 Bioyond 启动健康检查从物料类型列表切换为 scheduler_status()。 - 避免 debug 日志输出完整物料类型列表。 - 保持连接监控响应更轻量、更易读。 --- .../devices/workstation/bioyond_studio/station.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/unilabos/devices/workstation/bioyond_studio/station.py b/unilabos/devices/workstation/bioyond_studio/station.py index da641abd..b970ae81 100644 --- a/unilabos/devices/workstation/bioyond_studio/station.py +++ b/unilabos/devices/workstation/bioyond_studio/station.py @@ -56,13 +56,17 @@ class ConnectionMonitor: def _monitor_loop(self): while self._running: try: - # 使用 lightweight API 检查连接 - # query_matial_type_list 是比较快的查询 - start_time = time.time() - result = self.workstation.hardware_interface.material_type_list() + # 使用轻量级调度状态接口检查连接,避免启动时打印完整物料类型列表。 + result = self.workstation.hardware_interface.scheduler_status() status = "online" if result else "offline" - msg = "Connection established" if status == "online" else "Failed to get material type list" + if status == "online": + msg = ( + f"Scheduler status={result.get('status')}, " + f"hasTask={result.get('hasTask')}" + ) + else: + msg = "Failed to get scheduler status" if status != self._last_status: logger.info(f"Bioyond连接状态变更: {self._last_status} -> {status}")