Workflow runs
A run is one execution of a published workflow. An event or an action starts it. Picked records each run, each node that the run reached, and each lead that the run created or changed.
Where runs show
| Page | Address | Content |
|---|---|---|
| Runs | …/workflows/<workflow>/runs | The runs of one workflow, the last run first. Open it with the Runs tab of the workflow. |
| Run | …/workflows/<workflow>/runs/<run> | One run: its tasks, its details, its records and its labels. |
| Lead | …/leads/<lead> | The Workflow runs card. It lists the runs that created or changed the lead. |
A run starts only from a published version of the workspace. A change to a workflow that you did not publish does not start runs.
Run status
| Status | Meaning |
|---|---|
Running | The run started and did not stop yet. A Wait node can keep a run in this status for days. |
Completed | Each node that the run reached did its work, or failed and the run continued on its error exit. |
Failed | A node failed. The run stopped at that node. The run shows the reason. |
A tool node that fails with an edge on its error exit shows Failed on its task. The run
continues on that edge only when the tool itself fails:
- An External API call fails. Refer to the External APIs reference.
- Another tool refuses the request. For example, a label value is not a number for a
numberlabel, or the lead does not exist. The tool also refuses a row withincrementon a label that is not anumberlabel. It refuses some project labels and run labels with a key in the format of a hash. Refer to the Labels reference.
When the tool refuses the request, the error record has the code tool_failed and a
reason from the tool, for example value_invalid_for_type, label_write_invalid or
owner_not_found.
Other failures stop the run, with or without an edge on the error exit:
- A required argument has no value.
- An argument has a value that the tool does not accept:
- The value has the wrong type.
- The value is not one of the options.
- A number is not in the range that the tool accepts.
- A label namespace or key does not have the correct format.
- Two labels have the same namespace and key.
- A list of labels is empty.
- A label row has
valueandincrement, or neither. - A label row has
incrementandonlyIfAbsent, orincrementand a type other thannumber. - An
expiresInis not a whole number from 1 to 31536000.
- A template cannot be rendered.
- The workflow does not have a scope that the tool needs.
- The tool gives output that is not valid.
- An error occurs in Picked.
Visit cap
A run can go back to a node that it reached before, on a loop. Each time that the run gets to a node is a visit. The visit cap is the maximum number of visits to one node in a run.
| Setting | Value |
|---|---|
| Visit cap | A number from 1 to 100. If you do not set it, the visit cap is 10. |
Set the visit cap in the workflow settings. In the definition of the workflow, the field is
maxNodeVisits.
A node can get to the visit cap. If the run then gets to the node again, the run stops.
The run shows Failed, with the code loop_limit_reached and the ID of the node. Refer to How to retry a failed call with a loop.
When you save a workflow, Picked refuses these loops:
- A loop that does not have a sleep node on it.
- A loop that does not have a condition node on it.
- An edge from a node to the same node.
- A loop with the Action response node on it.
Records
The Records card lists each lead that the run created or changed. It shows each lead one time.
| Label | Meaning |
|---|---|
Created | A node of the run created the lead. This label replaces Updated for the same lead. |
Updated | A node of the run changed the lead or its labels. |
Deleted | A node of the run deleted the lead. This label replaces Created and Updated for the same lead. |
When a lead does not exist now, the card shows Deleted lead and the ID of the lead,
with no link.
Tasks
A task is one visit to a node. The Tasks card lists the tasks in the order that the
run reached them. When the run visits a node more than one time, each visit is a task.
A task of a later visit shows the number of the visit, such as visit 2.
The card shows 50 tasks. Show more tasks adds the next 50.
| Column | Value |
|---|---|
| Name | The tool of a tool node, or the kind of node: Start, Condition or Wait. |
| Node | The ID of the node. It links to the node in the editor while the workflow has the node. |
| Status | Running, Succeeded or Failed. |
| Time | The time from the start of the task to its end. |
| Operations | The leads and the labels that the task created, changed or removed, the first operation first. A label shows its namespace and its key. It never shows its value. |
A condition task does not show which branch it chose.
Labels
The Labels card shows the labels of the run. A user with ORGANIZATION_PROJECTS_UPDATE can
change, add and remove them. Refer to Labels in the dashboard.
Leads and runs
A lead lists a run when a node of that run created the lead, set one of its labels, or removed one of its labels. A change to the labels of a lead is a change to the lead.
The Workflow runs card shows 20 runs. Show older runs adds the next 20.
Access
| Surface | Scopes |
|---|---|
| Runs, Run | ORGANIZATION_WORKSPACE_READ and ORGANIZATION_PROJECTS_READ |
| The labels of a run | ORGANIZATION_WORKSPACE_READ to read them, and ORGANIZATION_PROJECTS_UPDATE to change them |
| The Runs tab of the workflow | ORGANIZATION_WORKSPACE_READ and ORGANIZATION_PROJECTS_READ. Without these scopes, the workflow does not show the Runs tab. |
| Workflow runs card | ORGANIZATION_LEADS_READ for the lead, and ORGANIZATION_WORKSPACE_READ and ORGANIZATION_PROJECTS_READ for its runs. Without the last two scopes, the card does not show. |
Deleted workflows
A run stays after you delete its workflow. The run page and the lead card show it as Deleted workflow. The Runs page of a deleted workflow does not exist, and the run page has no link to the editor.
API and MCP
You can also do this task with the Management API, the MCP server, or code that you send to picked_run.
| Task | GraphQL | MCP tool | Run |
|---|---|---|---|
| List the runs of a workflow | workflow | list_workflow_runs | tools.list_workflow_runs({ workflow_id }) |
| Read a run | workflowRun | get_workflow_run | tools.get_workflow_run({ run_id }) |
| List the tasks of a run | workflowRun | list_workflow_run_tasks | tools.list_workflow_run_tasks({ run_id }) |
| List the runs of a lead | lead | None | None |
The workflow query gives the runs in its runs field. The workflowRun query gives
the tasks in its tasks field. The lead query gives the runs in its workflowRuns
field.
