feat: 支持 Agent 并发批测与洞察导出
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"""add Agent batch execution mode and concurrency limit
|
||||
|
||||
Revision ID: 0034_agent_batch_concurrency
|
||||
Revises: 0033_agent_batch_tests
|
||||
"""
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = "0034_agent_batch_concurrency"
|
||||
down_revision = "0033_agent_batch_tests"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column(
|
||||
"sys_agent_batch_test",
|
||||
sa.Column("execution_mode", sa.String(20), nullable=False, server_default="sequential"),
|
||||
)
|
||||
op.add_column(
|
||||
"sys_agent_batch_test",
|
||||
sa.Column("concurrency_limit", sa.Integer(), nullable=False, server_default="1"),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column("sys_agent_batch_test", "concurrency_limit")
|
||||
op.drop_column("sys_agent_batch_test", "execution_mode")
|
||||
Reference in New Issue
Block a user