feat(cloud): skip MCP-busy devices in scheduler

This commit is contained in:
2026-07-21 14:37:21 +08:00
parent 9e3007e7f6
commit b0932dd398
8 changed files with 172 additions and 1 deletions
@@ -204,6 +204,8 @@ class TaskScheduler:
def _matches(device: "PooledDevice", constraints: TaskConstraints) -> bool:
if device.mcp_busy:
return False
if constraints.target_host_id and device.host_id != constraints.target_host_id:
return False
if (