Skip to main content
This page is for the person who runs Collabase. It explains how Studio carries out runs, what protects a run from a crash, and what to check when something is slow.

The parts

Collabase plugs run in the application. Plugs from the catalog and your own plugs run in the sandbox. Without the sandbox, flows that use only Collabase plugs keep working.

How a run is carried out

1

A trigger puts the run in the queue

The run exists in the database before it is queued, with its trigger data kept in storage.
2

A worker takes it

The worker takes a lease on the run and renews it every 10 seconds while a step runs. A Space may have 10 runs going at once by default. A run that finds its Space full goes back to the queue after two seconds.
3

Steps run one after another

After every step the worker writes the result to the step journal. A step may run for up to 10 minutes.
4

The run finishes or pauses

A run ends as succeeded, failed, cancelled or timed out. A run that waits for a delay, a call or an approval is paused and holds no worker.
Each application process carries out up to 20 runs at once. Add application replicas to add capacity.

After a crash

The step journal makes a run survive a restart of the application, of Redis or of the host.
  • A worker that stops without releasing its run loses the lease. Within about 45 seconds another worker takes the run over.
  • The new worker reads the journal and skips every step that already finished. It repeats only the step that was in progress.
  • A sweep every minute puts runs that have had no write for two minutes back in the queue, so a run is not lost when Redis loses its queue.
  • If the database or the sandbox is unavailable, the run waits and tries again up to ten times, five seconds apart, and then the sweep picks it up.
A step in progress at the crash may run twice. Plugs must be safe to repeat. See Actions.

Concurrency

The limit for one Space is 10 runs at once by default, and can be set between 1 and 200. It keeps one busy Space from using all workers. The limit is a counter in Redis, so it holds across all replicas. A slot that a lost worker never gave back frees itself after 30 minutes.

Retention

A daily sweep deletes finished runs that are older than the retention of their Space, together with their step logs and files. The retention is 30 days by default and can be set between 1 and 365 days in the Space settings. Runs that are going are never removed. Back up the database and the file storage together, because the step logs and large results are in storage.

Settings the services need

The installers create the secrets for a new installation, and the updater adds them to an existing one. Set them by hand only for an installation that you assemble yourself. If one is missing, plugs from the catalog and your own plugs are not available, and the application says so. Collabase plugs keep working.

Limits of a run

Three limits end a run on purpose, so that one flow cannot hold the workers for good: A step may still run for up to 10 minutes. See Limits.

What to watch

A flow that fails ten times in a row is switched off, and the editors and admins of its Space are told.

Runs that stay queued

The health address of the application, GET /api/health, answers status: "degraded" with degraded: ["automation-queue"] when a run has waited in the queue for more than 5 minutes. The field reasons says why: The answer stays 200, because restarting the application would not fix it. An instance that runs no flows reads as healthy.

After an update

A release that changes Studio can add migrations. They are additive and run when the application starts. This release adds columns for the latest trigger error of a flow and for the account a connection belongs to, and a table that routes the events of apps to flows. The sandbox image of a release installs the packages that the Collabase plugs need, such as the S3 plug, and refuses a plug whose packages carry a licence that is not allowed. Update the sandbox together with the application. The secrets stay as they are, and no new variable is needed.
Last modified on November 5, 2026