batch

package
v1.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2025 License: BSD-3-Clause Imports: 6 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL