github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/internal/workflowstep/suspend.cue (about) 1 import ( 2 "vela/op" 3 ) 4 5 "suspend": { 6 type: "workflow-step" 7 annotations: { 8 "category": "Process Control" 9 } 10 labels: {} 11 description: "Suspend the current workflow, it can be resumed by 'vela workflow resume' command." 12 } 13 template: { 14 suspend: op.#Suspend & { 15 if parameter.duration != _|_ { 16 duration: parameter.duration 17 } 18 if parameter.message != _|_ { 19 message: parameter.message 20 } 21 } 22 23 parameter: { 24 // +usage=Specify the wait duration time to resume workflow such as "30s", "1min" or "2m15s" 25 duration?: string 26 // +usage=The suspend message to show 27 message?: string 28 } 29 }