add browser_session_id to these tables: tasks, workflow_runs & task v2 (#2869)

This commit is contained in:
Shuchang Zheng
2025-07-03 11:57:00 -07:00
committed by GitHub
parent 1a0e5448d8
commit 70661ae5a0
2 changed files with 46 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ class TaskModel(Base):
task_id = Column(String, primary_key=True, default=generate_task_id)
organization_id = Column(String, ForeignKey("organizations.organization_id"))
browser_session_id = Column(String, nullable=True, index=True)
status = Column(String, index=True)
webhook_callback_url = Column(String)
totp_verification_url = Column(String)
@@ -256,6 +257,7 @@ class WorkflowRunModel(Base):
# workfow runs with parent_workflow_run_id are nested workflow runs which won't show up in the workflow run history
parent_workflow_run_id = Column(String, nullable=True, index=True)
organization_id = Column(String, nullable=False, index=True)
browser_session_id = Column(String, nullable=True, index=True)
status = Column(String, nullable=False)
failure_reason = Column(String)
proxy_location = Column(String)
@@ -630,6 +632,7 @@ class TaskV2Model(Base):
workflow_run_id = Column(String, nullable=True)
workflow_id = Column(String, nullable=True)
workflow_permanent_id = Column(String, nullable=True)
browser_session_id = Column(String, nullable=True, index=True)
prompt = Column(UnicodeText, nullable=True)
url = Column(String, nullable=True)
summary = Column(String, nullable=True)