add max_steps to task v2 table (#2293)
Some checks are pending
Run tests and pre-commit / test (push) Waiting to run
Run tests and pre-commit / fe-lint-build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run
Sync to skyvern-cloud / sync (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2025-05-12 12:56:48 -07:00 committed by GitHub
parent 4889e8db24
commit 9eb4b46bdc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
"""add max_steps to task v2 table
Revision ID: 07cb499ecbce
Revises: e8285b6ddcf0
Create Date: 2025-05-05 10:08:04.242755+00:00
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "07cb499ecbce"
down_revision: Union[str, None] = "e8285b6ddcf0"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("observer_cruises", sa.Column("max_steps", sa.Integer(), nullable=True))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("observer_cruises", "max_steps")
# ### end Alembic commands ###

View file

@ -587,6 +587,7 @@ class TaskV2Model(Base):
proxy_location = Column(String, nullable=True)
extracted_information_schema = Column(JSON, nullable=True)
error_code_mapping = Column(JSON, nullable=True)
max_steps = Column(Integer, nullable=True)
created_at = Column(DateTime, default=datetime.datetime.utcnow, nullable=False)
modified_at = Column(DateTime, default=datetime.datetime.utcnow, onupdate=datetime.datetime.utcnow, nullable=False)