Retries and failures
Steps that reach outside WBSKT can fail: a URL times out, a chat service is down, a board doesn't answer. This page covers how a step tries again, what the run does when it still fails, how split paths fail together, and what happens when a run runs out of credits.
Trying again
Every action step has a Try again setting. A new step starts with it on: 3 tries, waiting 2 seconds, then 4, with up to 20% random spread, never more than a minute.
| Try again | Waits between tries |
|---|---|
| Off | No second try. |
| Same wait | The first wait every time: 5 s, 5 s, 5 s. |
| Growing wait | The first wait times the try: 5 s, 10 s, 15 s. |
| Doubling wait | Twice as long each time: 5 s, 10 s, 20 s. |
- Tries counts the first one, from 1 to 20. Longest wait caps any single wait. Jitter spreads the waits at random, so many runs failing together don't all try again at the same instant.
- Only temporary errors are tried again, like a timeout or a 5xx answer. A 4xx answer or a missing setting fails at once, because trying again would get the same answer.
- Only retry on narrows it further to the error codes you list. Others fail straight away.
- Each try costs the step's credits again.
- A wait of 5 seconds or more is kept on the server, not in memory, so a retry survives WBSKT restarting.
When a step still fails
Once its tries are used up, the step's When it still fails setting decides what happens next:
| Choice | What happens |
|---|---|
| Fail this path (default) | This path ends as failed. Other paths of the run carry on. |
| Continue down “error” | The step gets an error output, and the run carries on from it. Use it to send a fallback alert. |
| Treat it as done | The run carries on from the step's normal output, as if it had worked. |
| Fail the whole run | Every path stops, and any workflow it started with Run workflow is cancelled. |
| Jump to another step | The run carries on from the step you pick. |
Whenever the run carries on after a failure, the next steps can read what went wrong as {{lastError.errorCode}} and {{lastError.message}}.
To stop a run on purpose, with your own reason, use the Fail run step.
How a run ends
A run's final status comes from its paths:
| Its paths | The run |
|---|---|
| All succeeded | Succeeded |
| Some failed, some succeeded | Partly failed |
| All failed, or a step failed the whole run | Failed |
| Someone cancelled it | Cancelled |
| It spent its credit budget | Out of credits |
Turn on Fail the run when a path fails in the workflow's settings to stop everything on the first failed path instead of letting the others finish. See run statuses.
Split paths and failures
Split into paths and For each, in parallel start several paths. Wait for paths brings them back together: when all have arrived, when the first has, or when a number of them have.
- A path that fails still arrives, counted as a failure. The step after the join can read how many succeeded and failed, as
joinSucceededandjoinFailed, and decide what to do. - A path that ends before it reaches the join, at an End step or an output with nothing after it, never arrives. Waiting for all, the join can't be met, so the run fails with
JOIN_BRANCH_ENDED. Waiting for the first or for a number, the join carries on without it, and fails only once too few paths are left to meet it. - Exactly one path carries on after the join. The others end there.
- Splitting without a join is fine for fire-and-forget: each path just runs to its end. But either every path of a split reaches the same join or none does.
Running out of credits
A run spends credits as it goes: 1 to start, then each step's price before it runs. Three limits can stop it, and the step that hits one fails with a code that says which:
| Code | The limit | Raise it in |
|---|---|---|
OUT_OF_CREDITS_RUN_BUDGET | This run's budget (10,000 unless the workflow sets another). | The workflow's Credit limit per run. |
PLAN_CREDIT_LIMIT_REACHED | The account's credits for the month, with any credit packs. | Your plan, or a credit pack. See billing. |
WORKSPACE_CREDIT_CAP_REACHED | The workspace's own monthly cap. | The workspace's usage settings. |
The run is cancelled and ends Out of credits. Steps already done stay done. When the month or the workspace cap is used up, new runs are refused as well, not queued.
What happens when…
- A URL answers 503 three times
- With the default Try again, the step tries 3 times over about 6 seconds, then fails, and the path follows When it still fails.
- A URL answers 404
- It fails on the first try. A 4xx isn't temporary, so it isn't tried again.
- WBSKT restarts while a step waits to try again
- A wait of 5 seconds or more is kept on the server and carries on after the restart. A shorter one is held in memory, so the step may start its tries over.
- One of three split paths fails and the join waits for all
- The join is met when the other two arrive, with
joinFailed= 1. The run ends Partly failed unless a later step fails it, or Fail the run when a path fails is on, which stops it at the first failure. - A step jumps back to an earlier step on failure
- That is allowed, so a run can go round again. Each pass costs credits, so a loop that never succeeds ends when the run's credit budget does.
- A run is left with nothing it can do
- A run with no path running and nothing waiting is ended from its paths when the engine next starts, or after 30 minutes at most.
- The parent of a Run workflow step fails
- The run it started is cancelled too.
Rules and API
Retry policy
An action node's retry:
| Field | Meaning |
|---|---|
strategy | Constant (Same wait), Linear (Growing wait: initial × attempt), Exponential (Doubling wait: initial × factorattempt−1). |
initialDelay | The first wait. Not negative. |
factor | Growth for Exponential, default 2, above 0. |
maxDelay | The cap, applied after jitter. At least initialDelay. |
maxAttempts | Tries in all, 1 to 20. |
jitterPct | Random spread, 0 to 100 percent either way. |
retryOn | Error codes or exception types to retry. Empty means any retryable failure. |
Each attempt is journaled as NodeRetrying in the run's history.
onFailure
outcome is FailBranch (the default), FailRun, ContinueOnError, ContinueAsSucceeded or JumpToNode with targetNodeId. Compensate is refused at publish. The continuing outcomes write lastError (errorCode, message). The workflow's failFast: true fails the run on the first failed path.
Joins
mode is All, Any or Quorum with quorumCount (at least 1, and no more than a split's path count). A parallel for-each over fewer items than quorumCount waits for all of them. When the deciding arrival is a failure, a fresh path carries on past the join. Joins nest: a split inside a path has its own join.
Validation codes
Checked when a workflow is published, and as you edit. Errors block publishing; warnings don't.
| Area | Codes |
|---|---|
| Structure | NULL_DEFINITION, INVALID_WORKFLOW_REF_ID, INVALID_VERSION, DUPLICATE_NODE_ID, UNKNOWN_NODE_KIND, EDGE_UNKNOWN_NODE, EDGE_UNKNOWN_PORT, DUPLICATE_PORT_EDGE, MISSING_PORT, EXTRA_PORT |
| Failure handling | COMPENSATION_NOT_SUPPORTED, ONFAILURE_TARGET_MISSING, ONFAILURE_TARGET_NOT_FOUND, ONFAILURE_TARGET_INVALID (the step itself or a trigger), CONTINUE_ON_ERROR_WITHOUT_ERROR_PORT, RETRY_FACTOR_INVALID, RETRY_MAX_DELAY_BELOW_INITIAL, RETRY_ATTEMPTS_INVALID, RETRY_DELAY_INVALID, RETRY_JITTER_INVALID |
| Splits and joins | PARALLEL_FOREACH_WITHOUT_JOIN, FORK_BRANCH_WITHOUT_JOIN, FORK_BRANCHES_JOIN_MISMATCH, JOIN_WITHOUT_COHORT, QUORUM_COUNT_INVALID |
| Run workflow and End | SUBWORKFLOW_INPUT_KEY_RESERVED, SUBWORKFLOW_SELF_REFERENCE, SUBWORKFLOW_TARGET_NOT_FOUND, END_OUTPUT_WITHOUT_MANUAL_TRIGGER |
| Variables, placeholders and waits | VARIABLE_NAME_RESERVED, TEMPLATE_INVALID, WAITFORHTTP_WEAK_TOKEN, AWAIT_SIGNAL_CORRELATION_INVALID |
| Call a URL | WEBHOOK_URL_RELATIVE, WEBHOOK_TIMEOUT_INVALID, WEBHOOK_HEADER_INVALID, WEBHOOK_HEADER_FORBIDDEN, WEBHOOK_HEADERS_TOO_MANY |
| Other steps | INTEGRATION_REF_MISSING, TELEGRAM_CHAT_MISSING, TELEGRAM_MESSAGE_INVALID, TELEGRAM_PARSE_MODE_INVALID, TELEGRAM_THREAD_INVALID, DISCORD_MESSAGE_INVALID, DISCORD_EMBED_INVALID, DISCORD_THREAD_INVALID, DISCORD_AVATAR_URL_INVALID, NTFY_MESSAGE_MISSING, NTFY_PRIORITY_INVALID, CLIENT_MESSAGE_INVALID, CLIENT_MESSAGE_ACK_TIMEOUT |
| Triggers | TRIGGER_CLIENT_REQUIRED, TRIGGER_MESSAGE_TYPE_REQUIRED, WEBHOOK_PATH_MISSING, INVALID_CLIENT_REF, INVALID_CRON, INVALID_PRESENCE_DURATION, INVALID_HOLD_DURATION, HOLD_REQUIRES_FILTER, MANUAL_INPUT_NAME_INVALID, MANUAL_INPUT_NAME_DUPLICATE, MANUAL_INPUT_NAME_RESERVED |
| Settings a step needs | CLIENT_REF_REQUIRED, CLIENT_REF_INVALID (not a client id), COMMAND_REQUIRED, EMAIL_SUBJECT_MISSING, TOAST_TITLE_MISSING, TOAST_MESSAGE_MISSING, WEBHOOK_URL_MISSING, WEBHOOK_URL_INVALID (not http or https), WEBHOOK_METHOD_INVALID, VARIABLE_NAME_MISSING, FOREACH_COLLECTION_MISSING, FORK_BRANCHES_MISSING, FORK_BRANCH_INVALID (a path with no name), FORK_BRANCH_DUPLICATE, SIGNAL_NAME_MISSING, SUBWORKFLOW_TARGET_MISSING, DELAY_DURATION_INVALID (0 to 365 days), AWAIT_SIGNAL_TTL_INVALID and WAITFORHTTP_TTL_INVALID (a wait of zero) |
| Clients | CLIENT_NOT_FOUND |
| Warnings | NO_TRIGGERS, ORPHAN_NODE, SUSPICIOUS_CORRELATION_KEY, SHARED_VARIABLE_UNDECLARED, ERROR_PATH_ENDS, CLIENT_NOT_REGISTERED, SUBWORKFLOW_TARGET_NOT_MANUAL |
A publish that names an integration the workspace doesn't have is refused as well.
Run-time failure codes
| Code | When |
|---|---|
JOIN_BRANCH_ENDED | A path ended before its join, and the join can no longer be met. |
EXPRESSION_EVALUATION_ERROR | A condition or value can't be worked out. |
BRANCH_STATE_TOO_LARGE | A path's data would pass 256 KB. |
SUBWORKFLOW_DEPTH_EXCEEDED | Run workflow steps nested more than 8 deep. |
OUT_OF_CREDITS_RUN_BUDGET, PLAN_CREDIT_LIMIT_REACHED, WORKSPACE_CREDIT_CAP_REACHED | A credit limit, as above. Runs stopped before these codes existed carry OUT_OF_CREDITS. |
WEBHOOK_NETWORK_ERROR | Call a URL couldn't reach the address. Tried again. |
WEBHOOK_INVALID_URL | The URL, once its placeholders are filled in, isn't a full address. |
WEBHOOK_HEADER_CONFLICT | The step sets the header the integration's credential goes in. |
INTEGRATION_INVALID, INTEGRATION_WRONG_TYPE, INTEGRATION_UNREADABLE | The step's integration is no longer valid, is the wrong kind for the step, or its secret can't be opened. Fix or replace the integration. |
VARIABLE_STEP_NOT_NUMERIC | Increment or Decrement by a value that isn't a number. |
SUBWORKFLOW_NOT_STARTED | Run workflow couldn't start the other workflow: for example it is off, it has no Run by hand trigger, or a limit refused the run. |
SUBWORKFLOW_INPUT_EVALUATION_ERROR | One of Run workflow's inputs couldn't be worked out. |
TRANSIENT_ERROR | A temporary failure with no code of its own. Tried again. |
REAPER_TIMEOUT | A run with nothing left to do was ended after 30 minutes. |
A few codes guard against a definition that checking should already have refused, such as one written straight to the database: FOREACH_CONFIG_INVALID, PFE_CONFIG_INVALID, FORK_CONFIG_INVALID, JOIN_CONFIG_INVALID, LOGIC_CONFIG_INVALID, VARIABLE_CONFIG_INVALID, JOIN_NO_TOKEN, PFE_NO_JOIN, NODE_KIND_NOT_SUPPORTED, VARIABLE_OPERATION_NOT_SUPPORTED and RETRY_EXHAUSTED. Seeing one means a bug on our side: tell us the run.
Each step's own failure codes are on its node page, and every code is in the error reference.