Saving & publishing
Draft vs. published
Every workflow has up to two current copies:
- Draft — your working copy. You edit and test it in the editor. Changes to a draft never affect live runs.
- Published — the live revision. Its triggers (webhooks, schedules, database polling, email, SFTP) fire and start runs, and Run Now uses it.
Each time you publish, the draft becomes the next numbered version (Version 1, Version 2…). Earlier versions stay in version history.
Saving the draft
You don't need to save by hand. About two seconds after your last change the draft saves automatically, and the header shows the status: Saving…, Saved just now / Saved 3 min ago, or Save failed.
Save in the header saves immediately and re-validates the workflow. If you navigate away while changes are still unsaved, Blokkio asks before leaving.
Test Run always runs the last saved draft. If you start a test run with unsaved changes, you're asked whether to continue with the saved version.
Save conflicts
Several people (or several tabs) can open the same draft. Every save says which version of the draft it was
based on. If someone else saved in the meantime, the server rejects the save (HTTP 409 Conflict), autosave
pauses and the editor asks how to continue:
| Choice | What happens |
|---|---|
| Merge | Loads their version and re-applies your changes on top. Steps, connections and notes that only one side changed are combined; where you both changed the same step, your version wins. A message tells you how many steps that affected |
| Reload | Discards your unsaved changes and loads their version |
| Overwrite | Saves your version over theirs |
| Decide later | Closes the dialog. Autosave stays paused; clicking Save brings the dialog back |
A merge is a single undo step, so you can still undo it.
Publishing a draft
Publish from the editor: click Publish in the editor header, press Mod + Shift + Enter, or type
"publish" in the step palette (Mod + K) or the command palette. Unsaved edits are saved first.
The header shows where the draft stands, next to the workflow name:
| Badge | Meaning |
|---|---|
| Not published yet | The workflow has never been published: its triggers don't start runs yet. |
| Draft · 3 changes since version 7 | The draft's steps differ from the live version. The Publish button has a dot. Click the badge to see the changes. |
| Published · no changes | The draft is the live version. Publish is disabled until you change something. |
The badge compares content: if you undo your changes (or change a setting back), it returns to Published · no changes once the draft is saved. Moving steps counts as a change (the layout is published too), but renaming the workflow or editing its tags doesn't — they aren't part of versions.
The arrow next to Publish opens the Publish menu: Compare with published, Save version…, Discard changes… and Version history.
Publish is disabled for roles that can't publish (Viewers, see Roles). You can also publish from Workflows → ⋯ → Promote Draft.
- Publish opens the publish dialog. It sums up what changes since the live version (for example 2 steps added, 1 changed; See all changes opens the comparison), checks the draft and lists any problems that may make runs fail; you can fix them or choose Publish anyway.
- Optionally add a Publication Comment describing the change — it is shown in version history.
- If the project has environments, pick the Target environment for triggers: Project default or a specific environment. Webhook, schedule and polling runs of this version use that environment's secrets and connection overrides.
- Click Publish.
Publishing is all-or-nothing. In one transaction Blokkio checks your plan limits, validates and registers every trigger, marks the revision as published and archives the previous one. If anything fails — for example a trigger is misconfigured or your plan doesn't allow that many schedules — nothing changes and the previous version stays live.
Runs that are already in progress finish on the revision they started with.
After publishing, the draft has been consumed. Your next change starts a new draft from the published version.
What changed since the live version
Compare with published (in the Publish menu, or click the Draft · N changes badge) shows what publishing your draft would change: steps added, removed and changed, with the settings that differ, side by side with the live version. Unsaved edits are included.
Discarding changes
To throw your draft away and go back to the live version, choose Discard changes… in the Publish menu (or on the version history page). The confirmation names the version you go back to, for example Discard your draft and go back to version 7?
- The editor reloads the live version. Triggers and runs aren't affected.
- Your draft isn't deleted straight away: it's kept in version history as a Discarded draft for 7 days, together with its test runs, so you can restore it.
- Other people with the editor open get the conflict prompt on their next save instead of bringing the draft back unnoticed.
- The workflow's name and tags stay as they are.
Discard changes isn't offered for a workflow that has never been published (there is no version to go back to; delete the workflow instead). It needs permission to edit workflows and is recorded in the audit log.
Viewing the published version
Choose View Published in the workflow's ⋯ menu (/workflows/<id>/published). The published revision opens
read-only: you can pan, zoom and open steps, but not change anything.
Rolling back
To put an older version live again, use version history: Roll back to this version… publishes a new version copied from it (asking whether to keep or discard your draft), or Restore copies it into the draft so you can review it first. To keep the current draft for later, use Save version….
Related
- Environments — promote a revision between environments with a diff
- Plan limits