Skip to content

Batches

A batch runs many workflows on one environment at once: every workflow with a tag, every workflow in a folder, or every workflow in the project. A pipeline can also run a batch of workflows’ files.

On Workflows, open the menu at the top of the list and choose Run a batch…, or choose Run folder on a folder. The dialog asks for:

  • Selection: all workflows, a tag, or a folder. It says how many workflows that is.
  • Environment.

Choose Start the batch. Every run is queued at once, and they run as browsers come free.

Some things to know:

  • The workflows are the ones selected at that moment. Tagging a workflow later does not add it to a batch that has started.
  • A workflow that can’t run does not start. The batch lists it with why, and the rest start.
  • A routine is never a workflow of a batch: it runs inside the workflows that run it. When one of its steps needs a change, each workflow that runs it is listed as not started, naming the routine.
  • A batch starts whole or not at all. If your plan’s run limit has no room for every run, nothing starts, and the message says how many runs the batch needs and how many are left. A batch bigger than a whole hour’s limit says that instead, and to run a smaller tag or folder.

A batch has one result.

Result What it means
Running At least one run has not finished.
Passed Every workflow ran and passed.
Failed At least one run failed, ended in error, or stopped because a step needs a change.
Incomplete Nothing failed, but something was not checked: a run ended not found or inconclusive, did not start, was cancelled, or was interrupted.

A batch is compared with the last batch of the same selection on the same environment; a batch of files, with the last batch of files from the same branch. The batch’s page leads with the result and the counts, says what changed in a sentence, and then lists the workflows that need you, in this order:

Section What is in it
Stopped passing Workflows that passed last time and did not this time. Look here first.
Still not passing Workflows that did not pass last time either.
New to this batch Workflows with no earlier result to compare with that did not pass.
Interrupted Runs Belay could not finish.
Didn’t start Workflows that can’t run, with why.
Cancelled Runs that were cancelled.
Still running Runs that have not finished.
Passing again Workflows that did not pass last time and pass now.

A selection’s first batch has nothing to compare with, so it lists what did not pass under Needs a look.

The workflows that passed are in their own list under these, Passed. With more than ten it starts closed, and has a box to find one by name.

Workflows that stopped at the same step with the same outcome are shown as one row, with the step once and the workflows under it. When they all stopped for the same reason, the reason is shown once too. Ten failures at a sign-in step are almost always one cause.

A run Belay could not finish is Interrupted. It has no result and says nothing about your application. On the batch’s page, Run the interrupted ones again starts each of those runs again inside the batch, and the batch’s result then comes from the new runs. The new runs count against your plan as any run does; the interrupted ones never did.

It is offered on the newest batch of its selection on that environment (for a batch of files, from that branch), and never for a failed run.

Cancel batch, on the page of a batch that is still running, cancels its runs that have not finished. Queued runs end at once; a running run finishes the step it is on. Finished runs keep their outcomes.

Batches lists the project’s batches, newest first: each batch’s result, what it ran, its workflows as a strip of marks with the counts, and what changed since its last batch. Filter by tag, folder, and result.

A batch you start yourself tells nobody. To run a batch regularly and be told when something stops passing, use a schedule.

A pipeline, such as GitHub Actions, can start a batch with an organization’s API key and wait for its result: Run from CI shows the command and the GitHub Action, and the API the request. The batch is like any other, and its page says it was started by the key’s name, with “(API)”, and shows the branch, commit, and link the pipeline sent.

A pipeline can send your workflows’ files from its repository and run them as a batch, as a pull request does to test its own change (Run from CI). Only a pipeline runs files: the app, an agent, and a schedule run what is saved.

  • Each file is one workflow of the batch. A file the same as its saved workflow runs that workflow. One that differs, or that has no workflow in the project, runs its own steps and saves nothing; its run says File for its Version.
  • A file with no workflow in the project runs under a workflow that is Only in files so far: it is in no list or count of the project, and on the batch’s page it has no link when it did not start. The release’s update brings it into the project, with its runs.
  • A file with a step that needs a change, or a variable with no value on the environment, does not start, and the batch lists it under Didn’t start with why.
  • A routine’s file is not a workflow of the batch. The workflows’ files are read with it in place of the saved routine, so a routine that differs makes each workflow that runs it run its file’s steps.
  • The batch says Files from and the branch it was sent from, such as Files from coupon-field, or Files with no branch, in its selection and in the list of batches.
  • It is compared with the last batch of files from the same branch on the same environment, so a pull request’s batches are compared with each other, never with the release’s.

start_batch takes exactly one of tag, folder, or all; it does not run files. get_batch returns the result, the counts, what changed since the last batch, and each workflow with the first step that did not pass, with its place and routine when it was a routine’s step. list_batches, cancel_batch, and rerun_interrupted do what their names say.