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
@@ -0,0 +1,28 @@
"""Add mcp_busy flag column to pooled_devices."""
from __future__ import annotations
import sqlalchemy as sa
from alembic import op
revision = "0014_pooled_device_mcp_busy"
down_revision = "0013_task_cancellation"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column(
"pooled_devices",
sa.Column(
"mcp_busy",
sa.Boolean(),
nullable=False,
server_default=sa.false(),
),
)
def downgrade() -> None:
op.drop_column("pooled_devices", "mcp_busy")