browser sessions v2 - backend (#4515)
Signed-off-by: Benji Visser <benji@093b.org>
This commit is contained in:
@@ -27,6 +27,11 @@ class BrowserSessionResponse(BaseModel):
|
||||
examples=["pbs_123456"],
|
||||
)
|
||||
organization_id: str = Field(description="ID of the organization that owns this session")
|
||||
status: str | None = Field(
|
||||
None,
|
||||
description="Current status of the browser session",
|
||||
examples=["created", "running", "completed", "failed", "timeout"],
|
||||
)
|
||||
runnable_type: str | None = Field(
|
||||
None,
|
||||
description="Type of the current runnable associated with this session (workflow, task etc)",
|
||||
@@ -124,6 +129,7 @@ class BrowserSessionResponse(BaseModel):
|
||||
return cls(
|
||||
browser_session_id=browser_session.persistent_browser_session_id,
|
||||
organization_id=browser_session.organization_id,
|
||||
status=browser_session.status,
|
||||
runnable_type=browser_session.runnable_type,
|
||||
runnable_id=browser_session.runnable_id,
|
||||
timeout=browser_session.timeout_minutes,
|
||||
|
||||
Reference in New Issue
Block a user