Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Populate ¶
func Populate(ctx context.Context, batch *task.Batch, dbp zesty.DBProvider, args TaskArgs) ([]string, error)
Populate creates and adds new tasks to a given batch. All tasks share a common batchID which can be used as a listing filter. The [constants.SubtaskTagParentTaskID] tag can be set in the Tags to link the newly created tasks to another existing task, making it the parent of the batch. A parent task is resumed everytime a child task finishes.
Types ¶
type TaskArgs ¶
type TaskArgs struct {
TemplateName string // Mandatory
Inputs []map[string]interface{} // Mandatory
CommonInput map[string]interface{} // Optional
Comment string // Optional
WatcherUsernames []string // Optional
WatcherGroups []string // Optional
Tags map[string]string // Optional
}
TaskArgs holds arguments needed to create tasks in a batch
Click to show internal directories.
Click to hide internal directories.