步骤超时
备注
你需要升级到 1.5 及以上版本来使用超时功能。
在 KubeVela 工作流中,每个步骤都可以指定一个 ,你可以使用 timeout
来指定该步骤的超时时间。
timeout
遵循 duration
格式,例如 30s
, 1m
等。你可以参考 Golang 的 parseDuration。
部署如下例子:
使用 vela status 命令查看应用状态:
$ vela status timeout-example
About:
Name: timeout-example
Namespace: default
Created at: 2022-06-25 00:51:43 +0800 CST
Status: workflowTerminated
mode: StepByStep
finished: true
Terminated: true
Steps
- id:1f58n13qdp
name:apply-comp1
type:apply-component
phase:succeeded
message:
- id:1pfije4ugt
name:suspend
type:suspend
phase:failed
name:apply-comp2
type:apply-component
phase:skipped
message:
Services:
- Name: comp1
Cluster: local Namespace: default
Type: webservice
Healthy Ready:1/1
No trait applied