rename variable (#2865)
This commit is contained in:
@@ -67,7 +67,7 @@ async def get_run_response(run_id: str, organization_id: str | None = None) -> R
|
||||
max_steps=task_v1_response.max_steps_per_run,
|
||||
data_extraction_schema=task_v1_response.request.extracted_information_schema,
|
||||
error_code_mapping=task_v1_response.request.error_code_mapping,
|
||||
max_screenshot_scrolling_times=task_v1_response.request.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=task_v1_response.request.max_screenshot_scrolls,
|
||||
),
|
||||
)
|
||||
elif run.task_run_type == RunType.task_v2:
|
||||
|
||||
@@ -187,7 +187,7 @@ async def initialize_task_v2(
|
||||
if context:
|
||||
context.task_v2_id = task_v2.observer_cruise_id
|
||||
context.run_id = context.run_id or task_v2.observer_cruise_id
|
||||
context.max_screenshot_scrolling_times = max_screenshot_scrolling_times
|
||||
context.max_screenshot_scrolls = max_screenshot_scrolling_times
|
||||
|
||||
thought = await app.DATABASE.create_thought(
|
||||
task_v2_id=task_v2.observer_cruise_id,
|
||||
@@ -231,7 +231,7 @@ async def initialize_task_v2(
|
||||
workflow_run = await app.WORKFLOW_SERVICE.setup_workflow_run(
|
||||
request_id=None,
|
||||
workflow_request=WorkflowRequestBody(
|
||||
max_screenshot_scrolling_times=max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=max_screenshot_scrolling_times,
|
||||
browser_session_id=browser_session_id,
|
||||
extra_http_headers=extra_http_headers,
|
||||
),
|
||||
@@ -470,7 +470,7 @@ async def run_task_v2_helper(
|
||||
task_v2_id=task_v2_id,
|
||||
run_id=current_run_id,
|
||||
browser_session_id=browser_session_id,
|
||||
max_screenshot_scrolling_times=task_v2.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=task_v2.max_screenshot_scrolls,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -788,7 +788,7 @@ async def run_task_v2_helper(
|
||||
proxy_location=task_v2.proxy_location or ProxyLocation.RESIDENTIAL,
|
||||
workflow_definition=workflow_definition_yaml,
|
||||
status=workflow.status,
|
||||
max_screenshot_scrolling_times=task_v2.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=task_v2.max_screenshot_scrolls,
|
||||
)
|
||||
LOG.info("Creating workflow from request", workflow_create_request=workflow_create_request)
|
||||
workflow = await app.WORKFLOW_SERVICE.create_workflow_from_request(
|
||||
|
||||
@@ -97,7 +97,7 @@ async def get_workflow_run_response(
|
||||
webhook_url=workflow_run.webhook_callback_url or None,
|
||||
totp_url=workflow_run.totp_verification_url or None,
|
||||
totp_identifier=workflow_run.totp_identifier,
|
||||
max_screenshot_scrolling_times=workflow_run.max_screenshot_scrolling_times,
|
||||
max_screenshot_scrolls=workflow_run.max_screenshot_scrolls,
|
||||
# TODO: add browser session id
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user