Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_tasks_concurrent" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Runs multiple tasks in parallel.", Config: DefaultConfig(), NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct { // 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"` // create a new variable scope for the child tasks NewVariableScope bool `yaml:"newVariableScope" json:"newVariableScope"` // child tasks Tasks []helper.RawMessageMasked `yaml:"tasks" json:"tasks"` }
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.