Skip to content

Publishing & versions

A workflow keeps two things apart: the draft you edit and the version that runs. Nothing you do on the canvas reaches production until you publish a version, and publishing one never stops you from editing the next. This page covers versions, the Release control that publishes and pauses a workflow, rolling back, comparing and restoring versions, and deleting a workflow.

Versions

Every save writes a new version — an immutable, checksummed snapshot of the whole definition. Nothing is ever edited in place, and version numbers only ever go up. The canvas autosaves a moment after each edit, so versions pile up quickly while you work; that is expected, and it is what makes rollback predictable.

Two versions matter at any moment:

  • The draft — the newest version. It is what the editor shows and what Run in the editor tests.
  • The live version — the one version that is published. Its triggers are the ones listening, and every production run executes it. A workflow that was never published, or that is paused, has no live version.

The Release control

The Release control sits in the editor's title bar, at the right of the workflow's name. It reads the workflow's state as one short sentence, and it is the editor's one place to publish or pause. The main part of the control acts; the chevron beside it opens a menu. A workflow that a session's agent created or changed carries the same control on that session's page; see Workflows the session made.

The control reads What it means Clicking it
Publish v3 Nothing is live, and the workflow has never been published. Opens the publish dialog on the newest version.
Paused v3 The workflow was published, then paused: nothing is live. Opens the publish dialog to resume it.
Live v3 Version 3 is live and it is also your draft. Nothing to do. Pause is in the menu.
Publish v5 · v4 live Version 4 is live, and the draft has moved on to version 5. Opens the publish dialog on the newest version.
Publish v5 · 2 things left The draft has open setup items and cannot be published yet. Opens the setup panel. See Finishing setup.

The states that ask nothing of you — live and in sync, or paused — fold down to their icon and version until you point at the control. Every state that asks for something keeps its words on screen. Users with the viewer role see Live or Not live; they can open the version history but cannot publish or pause.

Publishing and pausing change what serves production, so they count as changes to the workflow. While the editor holds the workflow in Read-only or Debug (see Editor modes), the control reads Live or Not live, as it does for a viewer, and neither publishes nor pauses. Its menu still lists the recent versions and opens the version history. To publish or pause, switch the editor to Edit. The lock is this browser's, and it covers the editor: the Release control on a session's page does not follow it.

The menu offers what fits the state:

  • Publish v5 — the same as clicking the control. On a paused workflow it reads Resume at v5.
  • Pause — stops triggers and references — takes the live version down. See Pausing below.
  • Finish setup — 2 things left — opens the setup panel, when setup blocks publishing.
  • Recent versions — the last five versions, newest first, each with when it was saved, and tagged Live or Draft where that applies. A live version older than those five is listed underneath them, so what is serving is never hidden.
  • Versions, or Compare v5 with live v4 when the draft is ahead — opens the version history page.

A line at the foot of the menu restates the state: never published, running v4, or paused at v4 — the version that was live when the workflow was paused.

Publishing a version

Clicking Publish opens a dialog titled Publish "…". Its Version to publish picker lists every version with the date it was saved; the newest is preselected and marked (latest), and the live one, if any, is marked Active. Confirm with the button, which names the version — for example Publish v5. On success, Version 5 is now live, and the control turns to Live.

Publishing does three things, in order:

  1. Validates the version at full strictness. Findings that are only warnings while you draft become errors here — a required parameter left empty, an unknown node type, an unbound required connection, a value left open in setup, a missing trigger, a while loop without a cap, an expression that reads a name expressions do not have, a Workflow Call or Workflow Tool naming a workflow with no live version, or trigger settings that could not be armed, such as the cron 0 25 * * * (there is no hour 25) or a misspelled timezone. A version with blocking findings is refused, and the dialog lists them under Version 5 cannot be published. Building a workflow lists the findings you are most likely to meet.
  2. Arms the triggers. Schedules start ticking, webhook paths start answering, and signal, collector and polling triggers start consuming. See Triggers.
  3. Moves the live pointer. Publishing a different version while one is live is a swap: the old version's triggers are replaced by the new version's in one step, executions already in flight finish on the version they started with, and only new runs pick up the new one. A long-lived listener follows within a few seconds: until then the old version keeps consuming, and it stops before the new one connects. Whatever a source that keeps no backlog sends in that gap starts no run: a Postgres or Redis channel, a Home Assistant home, or an MQTT broker, unless the MQTT connection has clean session off and the trigger's QoS is 1 or 2.

Open setup is the most common reason a version is refused, and the dialog treats it on its own. When the draft still has setup left, it warns up front — This workflow needs setup first. and A draft with open setup cannot be published. Finish it in the editor and try again. — with a Finish setup link into the setup panel; after a refusal it counts what is left, for example 2 setup steps are still open. See Finishing setup.

Two conflicts can refuse a valid version, and both name the other workflow's claim: a webhook path and method that another workflow already answers on, and a collector source that another live workflow already consumes in the documents stage. See Triggers.

Publishing needs edit access to the project. A few node types also need a project-level opt-in before a version in which they are enabled can be saved or published, because they reach past the usual boundaries: Command, SSH, Read File, Write File, the Local file trigger and Git need the project's owner or an organization owner or admin to have enabled host access for the project. They also need the installation to allow them, which app.crios.ai does not: there these steps fail when they run, and a version with an enabled Local file trigger cannot be published. Both are covered under Workflow settings.

Fixtures never apply to production runs

Test runs and Re-run from here honor pinned fixtures, also when you re-run from a step of a production run. A production run always executes every node for real. See Running & debugging.

Rolling back and forward

To make an older version live again, open the Release control's menu and pick it under Recent versions. Each row shows the version and how long ago it was saved; pointing at one reads, for example, Publish v3 (saved 2d ago). The publish dialog opens on that version, and confirming it swaps the live version exactly as publishing the newest one would. The draft is untouched: you keep editing where you were, and the list row shows the draft ahead of the live version until you publish again.

For a version older than the recent five, pick it in the dialog's Version to publish list instead.

While the workflow is locked in this browser, the menu lists the recent versions but none can be picked. Switch the editor to Edit first.

Pausing and resuming

Pause — stops triggers and references takes the live version down. It applies at once, with no confirmation, and reports "…" paused.

  • The triggers stop: schedules stop firing, webhook paths stop answering, and nothing new is consumed.
  • Other workflows and agents can no longer call this one as a sub-workflow, because a call always runs the called workflow's live version.
  • The draft, the version history and past executions are untouched, and executions already running are not cancelled.

The control then reads Paused, and the menu's footer names the version that was live; clicking the control publishes again, which resumes the workflow. Signal and collector triggers pick up where they stopped, so events that arrived while the workflow was paused are consumed after it resumes. A schedule starts again at its next slot after you publish; slots that passed while the workflow was paused are not made up.

Version history

The Version history page — Versions in the Release control's menu, or Version history in the More actions menu of a row in the Workflows list — lists every version with its Version, Checksum, Saved by and Saved time. The live version carries an Active badge.

Pick two rows to compare them; until you do, the page prompts Select two versions to see what changed between them. The comparison is headed Comparing v{{older}} → v{{newer}} and groups each difference as Added, Removed or Modified across Nodes, Connections, Groups, Annotations, Settings and Test fixtures. Two snapshots with no structural difference report These versions are structurally identical.

Restore copies an old snapshot back into the draft, and it appends rather than overwrites: The snapshot v{{version}} is copied into the draft as a new version on top of v{{draftVersion}}. History is append-only — nothing is overwritten. You end up with a new draft whose content matches the old version, and the versions in between stay exactly where they were. Restoring does not publish anything; publish the restored draft when you want it live. An edit of yours that has not been saved yet is saved first; if it cannot be, the restore is refused with Couldn't save your current draft — resolve that before restoring.

Restore changes the draft, so it follows the editor's mode for the workflow in this browser. While the workflow is in Read-only or Debug, the page shows a banner, This workflow is Read-only in this browser or This workflow is in Debug in this browser, with Restore is off on this page. Open the workflow in Edit to turn it back on., and every Restore button is switched off. Open in editor in the banner opens the workflow in Edit, which turns Restore back on here too. Reading the history and comparing versions work in every mode.

Deleting a workflow

Delete — the bin icon next to the tags, above the canvas — opens Delete "…"?: This permanently deletes "…", its version history and its executions' journal. This cannot be undone. If a version is live, the Delete button stays disabled until you tick This workflow is live (v4). Pause it and delete anyway. Afterwards you land back on the Workflows list. The bin icon is shown in Edit only: to delete a workflow that is locked in this browser, switch the editor to Edit first.

Deleting takes the history with it

Nothing about a deleted workflow can be recovered: not its versions, not its executions. To stop a workflow without losing anything, pause it instead.