Feat/improved mcp timeout configs (#23605)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
d3eff9b1a3
commit
1ffe190557
18 changed files with 180 additions and 48 deletions
|
|
@ -0,0 +1,33 @@
|
|||
"""add timeout for tool_mcp_providers
|
||||
|
||||
Revision ID: fa8b0fa6f407
|
||||
Revises: 532b3f888abf
|
||||
Create Date: 2025-08-07 11:15:31.517985
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'fa8b0fa6f407'
|
||||
down_revision = '532b3f888abf'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('tool_mcp_providers', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('timeout', sa.Float(), server_default=sa.text('30'), nullable=False))
|
||||
batch_op.add_column(sa.Column('sse_read_timeout', sa.Float(), server_default=sa.text('300'), nullable=False))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('tool_mcp_providers', schema=None) as batch_op:
|
||||
batch_op.drop_column('sse_read_timeout')
|
||||
batch_op.drop_column('timeout')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue