Skip to main content

Runs and run statuses

A run is one execution of a prepared Unstract Flow workflow. It starts when you press Run in the editor, when a deployment fires on its schedule or webhook, when you press Run now on a deployment, or when your own system calls the API.

Statuses​

StatusStatus valueMeaning
QueuedqueuedThe run is waiting to start.
RunningrunningThe run is working through its steps.
Needs reviewhitl_pausedThe run is paused until a person answers a review.
Waiting for quotathrottledA connector action reached its call limit, and the run waits to continue.
SucceededcompletedThe run finished.
PartialpartialThe run finished, and some items failed along the way. The editor's Run tab reads Finished with failures.
FailedfailedThe run stopped on an error.
CancelledcancelledSomeone cancelled the run.

A run that is Queued, Running, Needs review or Waiting for quota can be cancelled, and ends as Cancelled.

Succeeded, Partial, Failed and Cancelled are final. The run API your own systems call reports a run that's waiting for quota as running, with throttled: true and throttled_until set to the time it tries again. A webhook deployment's run-status URL reports it as throttled. An archived workflow starts no new run, from any trigger; a run already in flight finishes.

A run your own system recovers through the API moves to resuming at once, before it is working again, and counts toward your organization's limit on runs in flight until it finishes. The runtime of a resumed run is counted once: the time it ran before and after the resume is not added up twice. Runs covers the recovery options.

Where runs appear​

  • In the editor, the Run tab of Tools and configuration follows the latest run step by step. See Run a workflow.
  • The Runs page lists runs across your organization. See The Runs page.
  • A run's details hold its logs and the step that failed, if any. See Run details.

Cancel a run​

On a workflow's runs page, select Cancel on a run that's Queued, Running, Needs review or Waiting for quota. The Runs page has Cancel on a run that's Queued, Running or Waiting for quota, and Review on a run that Needs review. In the editor, Stop cancels the latest run. A Viewer can't cancel a run, so Cancel doesn't appear for them. The run ends as Cancelled, and Flow cancels the review ticket the run was waiting on. A ticket from an Info only, no stop step stays open.

When a step fails​

Flow repeats a failing connector call on its own only when the connector marks the action as safe to repeat, as most reads and item-marking actions are. Such a call gets up to 3 attempts in all after a temporary failure the connector reports, such as a rate limit from the other system or a dropped connection. It gets up to 5 attempts in all when it runs past its time limit (3 minutes for most steps) or fails inside the connector, so such a step can take about 15 minutes before it fails.

Each call to an action its connector marks as not safe to repeat gets one attempt, even after a timeout or a restart of the worker running it. Those actions include sending an email, inserting a row, most uploads and extractions such as an Unstract extraction, taking the next item from a pipeline, website and terminal sessions, and some reads such as an Amazon S3 file read. Its first attempt may already have sent or written, so a rate limit from the other system, a timeout or a restart fails the step. Before you run the workflow again, check the other system for what the failed step did. A REST API request that only reads, with the method GET, HEAD or OPTIONS, can be sent again after a timeout or a restart. Connectors that retry on their own, such as REST API and LLMWhisperer, can still send a call again inside that one attempt. A failure that another attempt can't fix, such as a rejected credential, a missing item or invalid input, fails the step at once.

A failed run stays failed. Fix the cause and start a new run; in the editor, Run again starts the last prepared version from its first step, so prepare again first when you fixed the spec. When the run came from a deployment with Automatic Retry on, Flow may start a new run itself. The new run starts from the first step, so steps that already sent or wrote do so again. Some failures aren't retried, such as a run that failed at one of Flow's call limits; see Deployment health. When the failed run had claimed items from a pipeline, Release claims in its details returns them to the pipeline for the next run. By default it returns the table rows and files the run still held and the inbox threads it claimed but hadn't read. The threads it read come back only when you tick Also release items this run already read or finished. Pipelines explains claims.

Waiting for quota​

Each action of each connector instance in a workflow has an hourly call limit. It is 1,800 unless the connector sets its own; the Database connector allows 500,000, and the reference table actions 100,000. A limit set on the workflow replaces the 1,800 and leaves a connector's own limit alone; a limit set on a connector instance replaces all of them for that instance. A run that reaches it shows Waiting for quota, waits until the wait ends or someone raises the limit, and tries again; the editor's Run tab reads Waiting for a call limit and keeps Stop. After six waits, or when the next wait would take the total past two hours, the next call that is turned away fails the run. Calls of a parallel step that are turned away together count as one wait. A workflow prepared before Flow could wait for quota fails at once; prepare it again. Call limits explains the limits and how long a run waits.