Deployment health
Each Unstract Flow deployment has its own page, which shows how its runs are going and what it has done. Open it with View details on the Deployments page.
Overview
The top of the page shows the deployment's status, its next run, its Success rate · last 30 runs and its Runs · all time. The success rate covers the deployment's 30 most recent runs, as the share that succeeded out of those that succeeded or failed.
Once a scheduled deployment has skipped a scheduled time, Skipped runs appears on the Overview tab. When any were skipped in the last 24 hours, it shows how many. A time is skipped when the deployment already has as many runs in flight as its Parallelism allows; a run waiting for a review doesn't count, and a run waiting for a call limit does. A deployment with a run in flight also skips a time while your organization has as many runs in flight as it may; one with no run in flight, or whose runs in flight are all waiting for a review or a call limit, still starts one, as long as its Parallelism has room. Scheduled deployments explains skips.
Runs and Activity
- Runs lists the deployment's runs. Select one to open its details and logs. The tab's tiles show Runs · all time and, for the 30 most recent runs, Succeeded, Failed and Success rate · last 30 runs.
- Activity records what happened to the deployment: each run it started, each scheduled time it skipped and why, and each time someone created, edited, paused or resumed it or regenerated its key.
When runs fail
Check the Runs tab, open the failed run, and read the step that failed. A failed run stays failed. Edit, Run now, Pause and Resume appear only to owners, admins and members, so a Viewer can read the page but not change the deployment. A deployment runs the version it was set to. If the fix is in the spec, prepare the workflow again, tag the new version, then select Edit on the Overview tab and choose it under Version (Tagged). Then start a new run with Run now or wait for the next trigger. If the deployment shows Failing, select Resume first.
An error in the prepared workflow's own code fails the run at once, with a message that starts "The workflow code raised". Prepare the workflow again; if the error comes back, the spec needs to say what to do when that value is missing.
A run with the message "This run has stopped making progress" is stuck on Flow's side. It may recover by itself; otherwise Flow ends it as Failed after 30 minutes. Until then it counts against the deployment's Parallelism: at 1, it holds back every scheduled time, and a webhook deployment answers every request with 429. To end it sooner, find the run on the Runs page and select Cancel. Prepare the workflow again, tag the new version and choose it under Version (Tagged) before the next run, and send the run ID to support if it happens again.
Failures and Automatic Retry
A run that fails counts toward the deployment's Consecutive failures, and so does a run that fails to start. A run that succeeds, or finishes as Partial, sets the count back to zero. After three in a row the deployment stops until you select Resume: the Deployments page and the deployment's Status show Failing, the badge at the top of the deployment's page shows Error, and Flow notifies the person who created the deployment and the organization's admins.
With Automatic Retry on, a failed run is retried before it counts. By default Flow waits 1 minute before the first retry and twice as long before each next one, up to 15 minutes; Advanced (backoff) changes these. Then it starts a new run from the beginning, up to Max retries times. Don't select Run now while a retry is pending; the deployment's Activity tab shows when the next retry is due. When the retries run out, the people under Notify recipients are told and the failure is counted. With nobody listed there, Flow tells the person who saved the setting. When nobody on the list is still in the organization, it tells the person who created the deployment and the organization's admins.
Some runs aren't retried:
- A run that was cancelled. It isn't a failure, and it leaves the count as it is.
- A run that finished as Partial. A retry would repeat the items that succeeded.
- A run that failed while its deployment was paused or Failing, or after its workflow was archived. The notification says which, and the failure isn't counted. With Automatic Retry off, such a failure counts like any other.
- A run that failed at one of Flow's hourly call limits. The retry would meet the same limit, so the run counts as a failure at once. A run that failed at a connector's own rate limit, such as a 429 from the other system, is retried like any other failure. Call limits explains how to raise one.
- A run that Flow found lost before it got going and ended as Failed.
- A run that Flow ended for making no progress. The retry would stop at the same place.
- A run that failed to start.
The last four count as failures straight away.
A paused deployment doesn't change to Failing when runs it had already started fail.
- Retry from failure and Retry from start do the same thing: a retry is a new run from the beginning.