Skip to main content
Version: Studio 2.2.7

Flows: run, schedule, approve

Start a Flow run by hand or on a schedule, follow it, act on the steps that wait for you, and read why a run failed or stopped. Before you start: the Flow needs an active version (Flows: build a Flow).

Run now​

  1. Open the Flow and click Run now. A Flow without run inputs starts at once and opens the run page.
  2. A Flow with run inputs opens Run Flow in a side panel beside the Flow page: "This run uses active version N." Under Run inputs ("Review the inputs for this run. Required fields are marked with an asterisk."), required inputs are marked *, for example As of date *, and the others "(optional)". An S3 prefix input expects folder/subfolder/ when it has a fixed bucket, otherwise a full s3://bucket/folder/ address. Click Start run (Starting run…), or Cancel.
  1. Or open Flow Runs from the Dock and click Run now: the same Run Flow side panel opens on Choose a Flow. Search with Search active Flows and pick one; the section then reads Selected Flow, and Change Flow reopens the list ("Change the Flow to start a different process."). Fill its inputs, optionally add Instructions (optional) under Run instructions ("Additional context for this run only."), and click Start run.

Run on a schedule​

  1. On the Flow page click Run on schedule: "The schedule starts enabled and uses this Flow's active version. You can pause it at any time."
  2. Describe the cadence under When should it run?, for example "Every weekday at 7am UK time", and click Generate schedule. Schedule expression * fills in, for example cron(0 7 ? * MON-FRI *), with a plain-English reading. Expressions use UTC; check the conversion. You can also type a cron(…) or rate(…) expression yourself.
  3. Fill Schedule name *, for example "Daily risk pack", and click Create schedule. If the Flow's agents use a connector that signs in as each person, the dialog says "Scheduled runs use your own connected accounts." and offers Connect for each one you have not connected.

The Schedules section on the Flow page lists each schedule as Enabled or Paused with "Last triggered:", its expression, description and any run instructions or inputs. Pause schedule and Resume schedule stop and restart future launches; Delete schedule asks to confirm ("It stops future scheduled launches; runs already started continue."). Each schedule is an Amazon EventBridge rule. When it fires, the version active at that moment runs as the schedule's creator, with the trigger Schedule. Accepted expressions are a six-field cron(...) or rate(n unit). When a schedule fires while a run is still going, the Flow's When another run is active setting decides: Skip, Queue or Parallel; with Queue, at most 10 runs wait and start oldest first. A firing that cannot start within 15 minutes of its time, because the deployment was paused or Studio was down, is skipped, and the next firing runs on time; Last triggered does not change for a skipped firing.

Read Flow Runs and a run​

  1. Flow Runs lists every run you can see. Flow / run shows the Flow, its status, Version N, how it was started, Needs you or Completed with warnings when they apply, and the Run ID; then Started, Completed, Duration and Progress (steps and outputs). Search with Search Flow Runs (by run ID or Flow name), sort with Sort Flow Runs ("Sorting applies to this loaded page."), or click a row to open it. A Flow page's Runs section shows that Flow's runs only.
  1. The run page header shows the run ID, how it was started (Run now, Schedule, API, or API key with the key ID), the caller's Reference on API runs, Started, Duration, the time limit when one is set, the Version and a status:

    StatusMeaning
    Queued"Waiting for the current run to finish."
    Starting…Waiting to start.
    RunningSteps are working.
    Needs youA step is waiting for your decision.
    CompletedFinished; Completed · N warnings when a step finished with a warning.
    FailedA step or the run failed.
    StoppedSomeone stopped the run.
  2. The left side shows the run's steps as they progress, with Summary so far. Click Inspect via Lens to open Lens beside it (Lens Map). The Action Bar jumps straight to Needs your attention, Run details, Folio Files, Lens Timeline, Outputs, Approval History, Sources, Intelligence Graphs and Governor.

  3. Folio Files shows This run, Workflow root or All my files; a governed deployment adds Everyone's files. Run details lists the execution, the caller (API key ID and client reference), the data protection applied and the reported token usage.

  1. The Action Bar also offers Stop run while the run is going, Run again once it has finished (with the same inputs), Open Flow, Copy link and Download run (a zip of the run's folder).

Approve, send back or stop​

A step waits for you when a Task holds its result for review or waits for your go-ahead, when it is a Handoff, when the agent's coder wants to run a flagged command, or when the agent wants to use a connector tool that asks first. The run reads Needs you and Needs your attention shows "N requests need your decision" with Review approvals. You can act there or in the Inbox.

The step readsApproveDecline
Awaiting reviewAcceptSend back
Awaiting go-aheadApprove & runSend back
Wants to run a commandAllow this commandDon't run it, tell the coder
Waiting for your approvalAllowDeny
Waiting for you to connectConnectNot now
  1. To approve, click the approve button: "Your approval was received", and the run shows Resuming… while it continues.
  2. To decline, click the decline button, write under What should change? and click Send feedback: "Your feedback was received". A held result is redone with your note; a go-ahead revises the objective and asks again; a Handoff sends your note to the step before it, which runs again.
  3. Deny on a connector tool refuses that one call; the agent carries on without it and is told why in your note. A connector tool call nobody decides on within 30 minutes is not run.
  4. To end the run instead, click Stop run on the run page, or Stop (Stop the run for a command or connector request) on the Inbox card. Files the run already wrote stay in its folder.

When a step fails or the result does not match​

  1. Each Task step is told what to deliver: its Output description and Output kind from the Flow editor go to the agent with the objective. On the run, open the step in Lens to read them under Expected output.
  2. A Task step runs for at most 2 hours, including time it waits for you to allow a command or a connector tool call. Past that it fails with "node exceeded its 7200s ceiling".
  3. What a failed step does to the rest of the run is the Flow's If a step fails setting (Flows: build a Flow). With Stop on first failure, nothing downstream of the failed step starts. With Continue where possible, every step downstream of it is marked skipped, its details read Why this step was skipped with the failed step's handle, for example "@load-positions failed", the Lens Timeline records an Execution update naming the skipped steps, and steps that do not depend on the failed one run to the end. Either way the run reads Failed once nothing more can run.
  4. When the Flow declares a result schema and the run writes outputs/result.json, the file is checked against the schema as the run closes. If it does not match, the step that wrote it gets one more pass to correct it, told what is wrong, and the Lens Timeline records an Execution update saying so. If it still does not match, the run keeps its status and the mismatch is recorded: the REST API returns result_error as schema_mismatch: <reason> or invalid_json (Run a workflow from your system). A file over 256 KB is not checked.

What you should see​

A run that finishes reads Completed, with its outputs under Outputs and Folio Files (every file a step wrote under outputs/, attributed to that step) and a summary under Summary so far. A run whose Intelligence Graph publish was still building after 60 minutes ends Completed · 1 warning, not Failed, and shows the warning: "It will become active on its own; re-run this step later to adopt it, or check the AMPG's versions page." A failed run reads Failed: Needs your attention shows Run needs attention with the reason, and the Lens Timeline has a Run failed entry naming the step that failed. A run whose inputs could not be copied reads "The run inputs could not be copied before the first step." followed by the storage error; a run stopped by its time limit can read "The run reached its 4 h time limit and was stopped." Run details shows the Execution error code, for example wall_clock_limit_reached, input_materialisation_failed, launch_failed (the run never reached the runtime) or orphaned (the runtime has no record of the run). A stopped run reads Stopped and its Run stopped entry carries the recorded reason, or "Stopped by you".

Notes​

  • Run now, Run on schedule and Resume schedule are unavailable while the licence prevents runs: "Your licence currently prevents starting runs, creating schedules and resuming paused schedules. You can still pause an enabled schedule." (Banners you may see).
  • A schedule cannot be edited: to change its cadence, delete it and create a new one.
  • The time limit, when set, counts from the moment the run is queued and never pauses, so time spent waiting for your approval counts; when it is reached the run stops and reads Failed.
  • A run keeps going after you close the tab; only Stop run ends it early. A run that records no activity for 15 minutes, outside a long analysis or a wait for your decision, is ended on its own (Troubleshooting).
  • The Flow page refreshes its runs and schedules every 15 seconds while the tab is visible.
  • An error under an input field names the rule it failed, for example "Must be at least 1." or "Required."; other refusals show above the form.