rename variable (#2865)
This commit is contained in:
@@ -2522,7 +2522,7 @@ class TaskV2Block(Block):
|
||||
proxy_location=workflow_run.proxy_location,
|
||||
totp_identifier=self.totp_identifier,
|
||||
totp_verification_url=self.totp_verification_url,
|
||||
max_screenshot_scrolling_times=workflow_run.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolling_times=workflow_run.max_screenshot_scrolls,
|
||||
)
|
||||
await app.DATABASE.update_task_v2(
|
||||
task_v2.observer_cruise_id, status=TaskV2Status.queued, organization_id=organization_id
|
||||
@@ -2557,7 +2557,7 @@ class TaskV2Block(Block):
|
||||
workflow_run_id=workflow_run_id,
|
||||
run_id=current_run_id,
|
||||
browser_session_id=browser_session_id,
|
||||
max_screenshot_scrolling_times=workflow_run.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=workflow_run.max_screenshot_scrolls,
|
||||
)
|
||||
)
|
||||
result_dict = None
|
||||
|
||||
@@ -22,7 +22,7 @@ class WorkflowRequestBody(BaseModel):
|
||||
totp_verification_url: str | None = None
|
||||
totp_identifier: str | None = None
|
||||
browser_session_id: str | None = None
|
||||
max_screenshot_scrolling_times: int | None = None
|
||||
max_screenshot_scrolls: int | None = None
|
||||
extra_http_headers: dict[str, str] | None = None
|
||||
|
||||
@field_validator("webhook_callback_url", "totp_verification_url")
|
||||
@@ -78,7 +78,7 @@ class Workflow(BaseModel):
|
||||
persist_browser_session: bool = False
|
||||
model: dict[str, Any] | None = None
|
||||
status: WorkflowStatus = WorkflowStatus.published
|
||||
max_screenshot_scrolling_times: int | None = None
|
||||
max_screenshot_scrolls: int | None = None
|
||||
extra_http_headers: dict[str, str] | None = None
|
||||
|
||||
created_at: datetime
|
||||
@@ -120,7 +120,7 @@ class WorkflowRun(BaseModel):
|
||||
failure_reason: str | None = None
|
||||
parent_workflow_run_id: str | None = None
|
||||
workflow_title: str | None = None
|
||||
max_screenshot_scrolling_times: int | None = None
|
||||
max_screenshot_scrolls: int | None = None
|
||||
|
||||
queued_at: datetime | None = None
|
||||
started_at: datetime | None = None
|
||||
@@ -169,4 +169,4 @@ class WorkflowRunResponseBase(BaseModel):
|
||||
task_v2: TaskV2 | None = None
|
||||
workflow_title: str | None = None
|
||||
browser_session_id: str | None = None
|
||||
max_screenshot_scrolling_times: int | None = None
|
||||
max_screenshot_scrolls: int | None = None
|
||||
|
||||
@@ -440,6 +440,6 @@ class WorkflowCreateYAMLRequest(BaseModel):
|
||||
model: dict[str, Any] | None = None
|
||||
workflow_definition: WorkflowDefinitionYAML
|
||||
is_saved_task: bool = False
|
||||
max_screenshot_scrolling_times: int | None = None
|
||||
max_screenshot_scrolls: int | None = None
|
||||
extra_http_headers: dict[str, str] | None = None
|
||||
status: WorkflowStatus = WorkflowStatus.published
|
||||
|
||||
Reference in New Issue
Block a user