Skip to main content

Workflow settings

Open a workflow in the editor and click the gear icon in the header (on a phone: ⋯ → Workflow settings). The panel holds the settings that belong to the whole workflow rather than to one step.

Everything except the name is stored on the workflow itself, not in the draft, so it applies to the next run straight away, without publishing. The name is part of the draft and is saved with it.

Changing settings needs edit access to workflows (Administrator or Contributor).

About​

SettingWhat it does
NameThe workflow's name. Only editable in the draft.
DescriptionA note for your team: what the workflow does and who should know about it (up to 2,000 characters).

When something goes wrong​

Retry failed steps​

Turn this on to make every step try again before the run fails, without setting retries step by step.

FieldDescription
Times to retryExtra attempts after the first failure, from 1 to 10.
Wait first (seconds)The wait before the first retry (0–3600). It doubles after each try, like step retries. 0 uses the default of 2 seconds.

A step's own retry setting always wins. In the step's Error Handling tab, Retry on error has three choices:

  • Use the workflow default — follows this setting (no retries if it's off).
  • Retry this step — the step's own number of retries and wait.
  • Don't retry this step — never retried, even when the workflow default is on. Use it for steps that must not run twice, such as charging a card or sending a message.

Run another workflow when a run fails​

Pick an error workflow to start whenever a production run fails, for example to send an alert.

Limits​

Stop a run after​

Stops a run that takes longer than the chosen time and marks it failed with the reason "This run was stopped because it took longer than …". Steps that were still running are stopped, called workflows are cancelled, and the error workflow (if any) starts.

The time counts from the start of the run and includes time spent waiting for approvals or in Wait steps. Leave it at No time limit to let runs take as long as they need (each step still has its own timeout).

The longest limit you can choose depends on your plan, from 1 hour on the smallest plan to 7 days on the largest (see Plans and limits).

Steps running at once​

How many steps of one run can work at the same time, such as the steps of parallel branches or of one loop pass. The others wait their turn, in the order they became ready, and start as soon as a step finishes; the run log and the editor show them as Waiting for a free slot. The results are exactly the same, the run just takes longer. Steps waiting for an approval, in a Wait step or for a called workflow don't take a place.

  • Plan maximum (the default) uses your plan's number: Free 1, Enthusiast 2, Pro 4, Expert 10 (see Plans and limits).
  • Choose a lower number to go easier on the services your steps call (for example an API that allows only a few requests at a time). 1 runs one step at a time, in order.
  • You can't go above your plan's maximum; upgrade to run more in parallel.
  • When the project runs on your own self-hosted workers, the plan's maximum doesn't apply; only this setting does (leave it on the default for no limit).

A run keeps the number it started with, even if the plan or the setting changes while it runs. Each called workflow (building block) run has its own limit.

Runaway protection​

Two limits protect every run from running forever, for example because a loop never ends or a workflow keeps calling itself. They are always on and set by your plan (see Plans and limits for each plan's values).

  • Steps per run counts every step that runs, including retries and every loop iteration. When a run reaches the limit, the step that would go over it fails with "This run was stopped after … steps" and the run is marked failed. Each called workflow (building block) run has its own count.
  • Levels deep counts how many workflows call each other in a chain: the run started by a trigger is level 0, a workflow it calls is level 1, and so on. A call that would go deeper fails the calling step. If a workflow calls itself (directly or through other workflows), the error says so — add a condition that ends the repetition.

The workflow settings panel shows your plan's numbers.

Time and run history​

Time zone​

The time zone used for $now, $today and $workflow.timezone in expressions, for example Europe/London. Leave it empty for UTC.

Schedule triggers keep their own time zone setting.

Keep run history​

Decides what a finished production run keeps:

ChoiceKept
Every run (default)Everything.
Only runs that failStep data of runs that failed or finished with errors; deleted for successful and cancelled runs.
Don't keep run dataNo step data for any run.

Every run still appears in the execution logs with its status, start time, duration, step statuses and error messages. What is deleted when the run ends is the data each step received and produced, the trigger data and variables (including those of workflows it called).

A run without its data shows a note on its details page, and it can't be re-run (there is nothing to re-run it with). Test runs started from the editor always keep their data, so you can still debug.

Use Only runs that fail or Don't keep run data when runs handle personal or sensitive data you don't want stored, or to keep the logs small. Plan log retention still applies to everything that is kept.

Through the API​

curl -X PUT "https://api.blokkio.com/api/projects/{projectId}/workflows/{workflowId}/execution-settings" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"description": "Sends the weekly report",
"errorWorkflowId": null,
"runTimeoutMinutes": 30,
"defaultRetryAttempts": 2,
"defaultRetryDelaySeconds": 10,
"timeZone": "Europe/London",
"saveExecutionData": "errors",
"maxStepsAtOnce": 2
}'

saveExecutionData is all, errors or none. maxStepsAtOnce is the steps running at once (null = the plan's maximum). Fields you leave out are cleared (saveExecutionData falls back to all). GET on the same URL returns the settings plus a limits object with your plan's values.