fix task v2 script generation (#4546)
This commit is contained in:
@@ -755,6 +755,10 @@ async def run_task_v2_helper(
|
|||||||
context=context,
|
context=context,
|
||||||
screenshots=scraped_page.screenshots,
|
screenshots=scraped_page.screenshots,
|
||||||
)
|
)
|
||||||
|
await app.WORKFLOW_SERVICE.generate_script_if_needed(
|
||||||
|
workflow=workflow,
|
||||||
|
workflow_run=workflow_run,
|
||||||
|
)
|
||||||
break
|
break
|
||||||
|
|
||||||
if not plan:
|
if not plan:
|
||||||
@@ -963,11 +967,10 @@ async def run_task_v2_helper(
|
|||||||
context=context,
|
context=context,
|
||||||
screenshots=completion_screenshots,
|
screenshots=completion_screenshots,
|
||||||
)
|
)
|
||||||
if task_v2.run_with == "code":
|
await app.WORKFLOW_SERVICE.generate_script_if_needed(
|
||||||
await app.WORKFLOW_SERVICE.generate_script_if_needed(
|
workflow=workflow,
|
||||||
workflow=workflow,
|
workflow_run=workflow_run,
|
||||||
workflow_run=workflow_run,
|
)
|
||||||
)
|
|
||||||
break
|
break
|
||||||
|
|
||||||
# total step number validation
|
# total step number validation
|
||||||
|
|||||||
Reference in New Issue
Block a user