Skip to content
All changes

Workflow runs survive pause, long waits and retries

Paused and long-waiting runs no longer stall, every run ending sends its event, and restore, exit conditions and templates follow stricter rules.

Improved
2
  • WorkflowsEvery way a workflow run ends now sends workflow.instance_completed or workflow.instance_failed, which your webhooks, Slack alerts and the Workflow Instance Completed and Failed triggers listen for. Before, a run that ended at a Wait for Event step, by an exit condition, at its Max duration (hours) or in the cleanup of stuck runs sent nothing. A stuck run that cleanup fails now also frees its Max concurrent slot, and a run an exit condition ends now updates in the console straight away.
  • WorkflowsPausing a workflow with many runs in progress now answers quickly. Before, it searched the whole queue of waiting steps once for each run, so a workflow with 1,000 runs in a Delay could take more than a minute to pause. Cancelling, pausing, resuming or retrying a single run no longer searches that queue either.
Fixed
14
  • WorkflowsBehaviour change: saving a workflow's exit conditions now needs Update on Workflows in a role's permissions, not Update on Workflows Metrics. Restoring a version now needs Update on Workflows as well as Create on Workflows Versions. Before, a role meant only for metrics or version history could change a workflow. Saving exit conditions now also shows in the workflow's audit log as Exit conditions updated.
  • WorkflowsRestoring a version now changes only the draft, and an active workflow keeps its trigger until you publish. Before, a restore switched the live workflow to the old version's trigger at once, so it started reacting to a different event.
  • WorkflowsA paused run now keeps its Wait for Event step. Before, a timeout or event that reached it during the pause used the wait up, and after resume the run never moved and held its Max concurrent slot. On resume, a timeout that came due during the pause fires at once. An event that arrives while the run is paused is not kept, so the run waits for the next one or its timeout.
  • WorkflowsPausing a run or a workflow no longer cuts off a step that is already running. Before, the step's work was done but its result was dropped and nothing after it ran. A Delay, Wait for Event, Grant Credits or condition step then stalled the run for good, and a step with retries left, such as Send Email, could run twice. Resume now carries on from what finished, and completes or fails a run whose last step ended during the pause.
  • WorkflowsBehaviour change: cancelling a run that has already completed, failed or been cancelled now answers 400 with Cannot cancel instance with status: and its status, and changes nothing. Before, it overwrote the outcome and freed a Max concurrent slot a second time, which let extra runs in. Retrying a failed step now takes a slot when the workflow sets Max concurrent, and answers 409 while the workflow is at its limit.
  • WorkflowsA Wait for Event step now keeps waiting however long its timeout, No timeout (wait forever) included. Before, the wait was deleted 30 days after it began, so neither its event nor its timeout reached the run, which stayed waiting for good. An event now also resumes every run waiting for it. With more than 500 runs waiting on one event, the newer ones could miss it.
  • WorkflowsAn HTTP Webhook step with a Timeout (ms) above 60 seconds now waits for its request, up to the 120-second maximum. Before, the step was failed at 60 seconds with the request still open and sent again while the first was in flight. That made up to five overlapping requests and could end the step as failed though your endpoint answered 200. A retry policy carried on the step itself, as an imported workflow can, no longer shortens that wait.
  • WorkflowsA run whose start fails for a passing reason is now started by the automatic retry. Before, the retry took itself for a duplicate, so the run was lost with no error, and Re-entry prevention could refuse the retry too.
  • WorkflowsA run for a blocked contact, or for one with workflows turned off, is now cancelled at the start as intended. Before, both checks always passed.
  • WorkflowsAn Update Audience Member step that sets a contact back to subscribed now clears their opt-out reason and date and sends audience.resubscribed. Unsubscribing someone already out keeps the date they left.
  • WorkflowsBehaviour change: saving a template, creating a workflow from a template, copying a workflow and publishing now check the flow's size, as saving a draft does, and more than 500 steps or 1,000 connections answers 400. Before, a flow past that limit could go live through a template.
  • WorkflowsA hot-run test through POST /api/workflows/:id/test now goes through the same start checks as a triggered run, the 500-step and 1,000-connection limit among them, and counts as one workflow run in your usage. Dry runs are unchanged.
  • WorkflowsText in a step with many unclosed {{ no longer holds up other workflow runs. A merge tag can no longer contain a brace or a line break, so {{{name}}} now shows the value in braces, such as {Alice}, where it showed only } before.
  • SecurityWorkflow runs no longer copy your contacts' details into BuildBase's server logs. Guard and If / Else steps log each rule's field, operator, value type and result, not the value, and email steps no longer log the recipient's address. The run's own record still keeps each rule's value.

Use what shipped this week

Everything in this release is already in the console and the SDK.

Free plan7-day free trial on paid plansNo credit card required