Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_task_matrix" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Run a task multiple times based on an input array.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { // matrix variable name RunConcurrent bool `yaml:"runConcurrent" json:"runConcurrent"` // number of successful child tasks to make this task succeed (0 = all tasks) SucceedTaskCount uint64 `yaml:"succeedTaskCount" json:"succeedTaskCount"` // number of failed child tasks to make this task fail (0 = all tasks) FailTaskCount uint64 `yaml:"failTaskCount" json:"failTaskCount"` // matrix variable name MatrixValues []interface{} `yaml:"matrixValues" json:"matrixValues"` // matrix variable name MatrixVar string `yaml:"matrixVar" json:"matrixVar"` // child task Task *helper.RawMessageMasked `yaml:"task" json:"task"` }
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.