Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix: clarify workflow run queue setting (#6180)
Cindy Liead3c97fbdad
diff --git a/docs/api-reference/openapi.json b/docs/api-reference/openapi.jsonindex 9eb59ec17..bb3dfff43 100644--- a/docs/api-reference/openapi.json+++ b/docs/api-reference/openapi.json@@ -12616,7 +12616,7 @@"run_sequentially": {"type": "boolean","nullable": true,- "title": "Run Sequentially"+ "title": "Prevent Overlapping Runs"},"sequential_key": {"type": "string",@@ -12760,7 +12760,7 @@},"run_sequentially": {"type": "boolean",- "title": "Run Sequentially",+ "title": "Prevent Overlapping Runs","default": false},"sequential_key": {diff --git a/docs/developers/debugging/faq.mdx b/docs/developers/debugging/faq.mdxindex 33c996e2b..164dfe0d5 100644--- a/docs/developers/debugging/faq.mdx+++ b/docs/developers/debugging/faq.mdx@@ -131,9 +131,9 @@ Also verify:</Accordion><Accordion title="How do I run workflows sequentially with the same credentials?">-Use the "Run Sequentially" option with a credential key:+Use the "Prevent Overlapping Runs" option with a credential key:-1. Enable "Run Sequentially" in workflow settings+1. Enable "Prevent Overlapping Runs" in workflow settings2. Set the sequential key to your credential identifier3. Skyvern will queue runs that share the same credentialdiff --git a/docs/developers/debugging/troubleshooting-guide.mdx b/docs/developers/debugging/troubleshooting-guide.mdxindex 63aeb6652..be0d9dc83 100644--- a/docs/developers/debugging/troubleshooting-guide.mdx+++ b/docs/developers/debugging/troubleshooting-guide.mdx@@ -209,7 +209,7 @@ See [Using Artifacts](/developers/debugging/using-artifacts) for the full list o**Fix:**- Wait for other runs to complete- Check your plan's concurrency limits in Settings-- If using "Run Sequentially" with credentials, ensure prior runs finish+- If using "Prevent Overlapping Runs" with credentials, ensure prior runs finish</Accordion><Accordion title="504 Gateway Timeout on browser session">diff --git a/fern/openapi/skyvern_openapi.json b/fern/openapi/skyvern_openapi.jsonindex 0a401bc2e..b0198ad3d 100644--- a/fern/openapi/skyvern_openapi.json+++ b/fern/openapi/skyvern_openapi.json@@ -20020,7 +20020,7 @@"type": "null"}],- "title": "Run Sequentially"+ "title": "Prevent Overlapping Runs"},"sequential_key": {"anyOf": [@@ -20283,7 +20283,7 @@},"run_sequentially": {"type": "boolean",- "title": "Run Sequentially",+ "title": "Prevent Overlapping Runs","default": false},"sequential_key": {diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsxindex a30d41a54..ea10ead03 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/StartNode/WorkflowSettingsEditor.tsx@@ -51,6 +51,12 @@ import {type WorkflowStartNodeData,} from "./types";+const PREVENT_OVERLAPPING_RUNS_TOOLTIP =+ "Queues new runs of this workflow until any in-progress run finishes. Does not affect block ordering inside a single run; blocks always execute in declared order. Use this when concurrent runs would collide on shared state, such as the same credentials, browser session, or downstream account.";++const SEQUENTIAL_KEY_TOOLTIP =+ "Scope the run queue. Runs with the same key are queued together; runs with different keys can still execute in parallel. Templated against workflow parameters, for example {{ account_id }} to serialize per account.";+function WorkflowSettingsEditor({ blockId }: { blockId: string }) {// Subscribe to the start node's data slice. The sidebar mount lives// outside the per-node renderer, and the body also subscribes to@@ -255,8 +261,8 @@ function WorkflowSettingsEditorBody({<div className="flex flex-col gap-4"><div className="space-y-2"><div className="flex items-center gap-2">- <Label>Run Sequentially</Label>- <HelpTooltip content="Run the workflow in a sequential order" />+ <Label>Prevent Overlapping Runs</Label>+ <HelpTooltip content={PREVENT_OVERLAPPING_RUNS_TOOLTIP} /><SwitchclassName="ml-auto"checked={data.runSequentially}@@ -274,7 +280,7 @@ function WorkflowSettingsEditorBody({<div className="space-y-2"><div className="flex gap-2"><Label>Sequential Key (optional)</Label>- <HelpTooltip content="A static or dynamic key for directing sequential workflow execution." />+ <HelpTooltip content={SEQUENTIAL_KEY_TOOLTIP} /></div><WorkflowBlockInputTextareanodeId={blockId}diff --git a/skyvern/schemas/workflows.py b/skyvern/schemas/workflows.pyindex e3ca21c71..6b7902d66 100644--- a/skyvern/schemas/workflows.py+++ b/skyvern/schemas/workflows.py@@ -1207,7 +1207,7 @@ class WorkflowCreateYAMLRequest(BaseModel):adaptive_caching: bool = Falsecode_version: int | None = Field(default=None, ge=1, le=2)generate_script_on_terminal: bool = False- run_sequentially: bool = False+ run_sequentially: bool = Field(default=False, title="Prevent Overlapping Runs")sequential_key: str | None = Nonefolder_id: str | None = None