WorkflowResult
Defined in: packages/schema/src/workflow.ts:152
Workflow 执行结果
Properties
Section titled “Properties”workflowId
Section titled “workflowId”workflowId:
string
Defined in: packages/schema/src/workflow.ts:153
outputs
Section titled “outputs”outputs:
string[]
Defined in: packages/schema/src/workflow.ts:155
输出 Asset ID 列表
stepOutputs?
Section titled “stepOutputs?”
optionalstepOutputs?:Record<string,string[]>
Defined in: packages/schema/src/workflow.ts:164
各 transform 节点的输出 Asset ID(按 node.id 索引)。
仅在单 target 工作流(无 outputs.targets)执行成功时填充,
多 target 场景由于同一节点会有多份输出而留空(undefined)。
调用方据此获取中间步骤结果(如 pipeline UI 展示各步产物),
无需自行拆分工作流绕过 runtime 调度。
duration
Section titled “duration”duration:
number
Defined in: packages/schema/src/workflow.ts:166
执行耗时(毫秒)
status
Section titled “status”status:
"completed"|"cancelled"|"failed"
Defined in: packages/schema/src/workflow.ts:168
执行状态
error?
Section titled “error?”
optionalerror?:string
Defined in: packages/schema/src/workflow.ts:170
错误信息(status=failed 时)