|
@@ -589,11 +589,6 @@ class QtCleanService:
|
|
|
pending_item = await self.bench.get_queue_item(self.pending_starts[sid])
|
|
pending_item = await self.bench.get_queue_item(self.pending_starts[sid])
|
|
|
pending = pending_item["state"] not in ("succeeded", "failed", "interrupted")
|
|
pending = pending_item["state"] not in ("succeeded", "failed", "interrupted")
|
|
|
temperatures = self._temperatures(rt, fw, record, started, live)
|
|
temperatures = self._temperatures(rt, fw, record, started, live)
|
|
|
- air = (rt.snapshot.get("temperature", {}).get("hood_air", {}) if rt.run else
|
|
|
|
|
- rt.diagnostic.snapshot().get("temperature", {}).get("hood_air", {}))
|
|
|
|
|
- air_val = air.get("value_c") if air.get("quality") in ("valid", "reported") else None
|
|
|
|
|
- chamber_temp = (float(air_val) if type(air_val) in (int, float) and math.isfinite(air_val) else
|
|
|
|
|
- round(sum(temperatures.values()) / len(temperatures), 1) if temperatures else None)
|
|
|
|
|
channels = self._channels(rt, fw, rt.firmware if rt.run else rt.diagnostic.firmware,
|
|
channels = self._channels(rt, fw, rt.firmware if rt.run else rt.diagnostic.firmware,
|
|
|
record, started, temperatures)
|
|
record, started, temperatures)
|
|
|
connection = rt.snapshot["sol_state"] if rt.run else rt.diagnostic.state["state"]
|
|
connection = rt.snapshot["sol_state"] if rt.run else rt.diagnostic.state["state"]
|
|
@@ -603,7 +598,6 @@ class QtCleanService:
|
|
|
"power": rt.snapshot.get("server_power", "unknown"), "phase": phase,
|
|
"power": rt.snapshot.get("server_power", "unknown"), "phase": phase,
|
|
|
"run_state": state, "started_unix_ms": str(started), "boot_id": fw.get("boot_id", ""),
|
|
"run_state": state, "started_unix_ms": str(started), "boot_id": fw.get("boot_id", ""),
|
|
|
"verdict": verdict, "verdict_scope": verdict_scope,
|
|
"verdict": verdict, "verdict_scope": verdict_scope,
|
|
|
- "chamber_temperature_c": chamber_temp,
|
|
|
|
|
"input": input_point, "command": command, "channels": channels,
|
|
"input": input_point, "command": command, "channels": channels,
|
|
|
"can_start": bool(not foreign and rt.device.capabilities().get("bmc_power") and rt.device.capabilities().get("console")
|
|
"can_start": bool(not foreign and rt.device.capabilities().get("bmc_power") and rt.device.capabilities().get("console")
|
|
|
and not pending and not rt.run and not rt.finishing
|
|
and not pending and not rt.run and not rt.finishing
|