do not publish workflow when running task v2 (#3588)

This commit is contained in:
Shuchang Zheng
2025-10-01 18:46:23 -07:00
committed by GitHub
parent f43467c2fd
commit 696fcc56a0
2 changed files with 3 additions and 0 deletions

View File

@@ -567,6 +567,7 @@ async def create_workflow_from_prompt(
extra_http_headers=data.extra_http_headers,
max_iterations=x_max_iterations_override,
max_steps=x_max_steps_override,
status=WorkflowStatus.published if data.publish_workflow else WorkflowStatus.auto_generated,
run_with=data.run_with,
ai_fallback=data.ai_fallback,
)

View File

@@ -736,6 +736,7 @@ class WorkflowService:
extra_http_headers: dict[str, str] | None = None,
max_iterations: int | None = None,
max_steps: int | None = None,
status: WorkflowStatus = WorkflowStatus.auto_generated,
run_with: str | None = None,
ai_fallback: bool = True,
) -> Workflow:
@@ -779,6 +780,7 @@ class WorkflowService:
totp_identifier=totp_identifier,
max_screenshot_scrolling_times=max_screenshot_scrolling_times,
extra_http_headers=extra_http_headers,
status=status,
run_with=run_with,
ai_fallback=ai_fallback,
)