Skip to content

Versioning & restore

A version is an immutable copy of the workflow, which will be used when running. Restore is to cover the content of a version back to the draft, to restore to a known stable state.

Create version

Create version

Restore to draft

Restore to draft

Execute

Execute

Draft

Editable

Version v1

Executable

Version v2

Executable

Run

  • Draft:The editable state of the workflow (code, dependencies, environment variables, input/output specifications).
  • Version:The result of a release (cannot be modified, can be used for execution).
  • Restore:Restore a version to the draft, for continued editing.

There are two ways to create a version:

  • Manual creation:Click the Create version button in the top right corner of the workflow details page to create.
  • Semi-automatic creation:When creating a new task, new/edit schedule, or new batch, if the draft is selected, the system will automatically create a new version based on the draft.

The same version will be consistent when executed:

  • Step code
  • Dependencies
  • Environment variables
  • Input specifications and output specifications

A version guarantees that the workflow configuration remains unchanged, but cannot guarantee that the external environment remains unchanged, such as:

  • External API returns
  • Network and timeout
  • Time, random number
  • Concurrency and resource fluctuations

Restore is used for the following scenarios: to restore the draft to a stable version; or to continue development from a historical version.

  1. Select a version in the version list
  2. Click “Restore to draft”
  3. The draft will be completely covered by the version

After adjusting the dependencies and environment variables in the draft and verifying them, create v3. If there is a problem online, you can switch the execution back to v2, and restore v2 to the draft for repair; after the repair is completed, create v4. This process can achieve execution and development without affecting each other.