Updated on 2024-08-14 GMT+08:00

Workflow

A workflow is a DAG that consists of phases and the relationships between phases.

A directed line segment shows the dependency between phases. The dependency decides the order of phase execution. In this example, the workflow runs from left to right after it starts. The DAG can handle the multi-branch structure as well. You can design the DAG flexibly according to the real situation. In the multi-branch situation, phases in parallel branches can run at the same time.

Table 1 Workflow

Parameter

Description

Mandatory

Data Type

name

Workflow name. The name can contain a maximum of 64 characters, including only letters, digits, underscores (_), and hyphens (-), and must start with a letter.

Yes

str

desc

Workflow description

Yes

str

steps

Phases contained in a workflow

Yes

list[Step]

storages

Unified storage objects

No

Storage or list[Storage]

policy

Workflow configuration policy, which is used for partial execution

No

Policy