步骤超时

    备注

    你需要升级到 1.5 及以上版本来使用超时功能。

    在 KubeVela 工作流中,每个步骤都可以指定一个 ,你可以使用 timeout 来指定该步骤的超时时间。

    timeout 遵循 duration 格式,例如 30s, 1m 等。你可以参考 Golang 的 parseDuration

    部署如下例子:

    使用 vela status 命令查看应用状态:

    1. $ vela status timeout-example
    2. About:
    3. Name: timeout-example
    4. Namespace: default
    5. Created at: 2022-06-25 00:51:43 +0800 CST
    6. Status: workflowTerminated
    7. mode: StepByStep
    8. finished: true
    9. Terminated: true
    10. Steps
    11. - id:1f58n13qdp
    12. name:apply-comp1
    13. type:apply-component
    14. phase:succeeded
    15. message:
    16. - id:1pfije4ugt
    17. name:suspend
    18. type:suspend
    19. phase:failed
    20. name:apply-comp2
    21. type:apply-component
    22. phase:skipped
    23. message:
    24. Services:
    25. - Name: comp1
    26. Cluster: local Namespace: default
    27. Type: webservice
    28. Healthy Ready:1/1
    29. No trait applied