github.com/kubevela/workflow@v0.6.0/pkg/tasks/template/static/suspend.cue (about)

     1  import (
     2  	"vela/op"
     3  )
     4  
     5  suspend: op.#Suspend & {
     6  	if parameter.duration != _|_ {
     7  		duration: parameter.duration
     8  	}
     9  	if parameter.message != _|_ {
    10  		message: parameter.message
    11  	}
    12  }
    13  
    14  parameter: {
    15  	duration?: string
    16  	message?:  string
    17  }