Roll back a workflow

See a workflow's version history, compare an older version with the current one and restore it.

On this page

Every time someone applies changes to a workflow, Duun saves a new version. If a change makes things worse, you can restore an earlier version in a few clicks. Restoring never deletes history.

See the version history

  1. Open the factory, select Workflows and pick the workflow.
  2. Select the version menu in the toolbar, for example Version 6. Each version shows who made it and when: “You”, a teammate’s name, or “Agent, applied by Dana” when the change came from the chat pane.
  3. Select an older version to view it. It opens read-only, with badges on the steps that differ from the current version.

Turn on Show changes to see what was added, removed or edited compared with the current version, including notes like “Instructions differ from current”.

Restore an older version

  1. While viewing the version you want, select Restore.
  2. Read the confirmation and confirm. “This re-applies version 3 as the newest one. Earlier versions stay in the history.”
  3. Check the version menu. The restored copy appears at the top as a new version, marked as restored from the old one.

New runs use the restored version straight away.

What happens to running work

Runs in progress keep the version they started on, so restoring doesn’t disrupt them. If a bad version is causing those runs to fail, cancel or restart them after restoring. A restarted run stays on its original version; start a new run to use the restored one. See Stop, pause or retry a run.

If you only need part of an old version

You don’t have to restore everything. Open the current version, select the step you want to fix and copy the instructions or settings from the old version, which you can view side by side. Then review and apply as usual. See Edit a workflow.

If something goes wrong

  • Restore is disabled. You need to be a factory owner, admin or workflow editor. Ask in the factory’s Access tab.
  • You have unapplied changes. Apply or discard your draft before restoring, so the two don’t get mixed up.
  • You restored the wrong version. Restore again. Every version, including the one you replaced, is still in the history.

Developers can restore from the CLI or API too; see Versions and rollback.

    Type to search the docs, help center and blog.