submitter

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Submitter

type Submitter struct {
	ApiConnectionDetails *client.ApiConnectionDetails
	// Jobs to submit.
	Queue      string
	JobSetName string
	Jobs       []*api.JobSubmitRequestItem
	// If true, generate random clientId for Job, if not already provided
	RandomClientId bool
	// Number of batches of jobs to submit.
	// A value of 0 indicates infinity.
	NumBatches uint32
	// Number of copies of the provided job to submit per batch.
	BatchSize uint32
	// Time between batches.
	Interval time.Duration
	// Number of seconds to wait for jobs to finish.
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewSubmitterFromTestSpec

func NewSubmitterFromTestSpec(conn *client.ApiConnectionDetails, testSpec *api.TestSpec, out io.Writer) *Submitter

func (*Submitter) JobIds

func (srv *Submitter) JobIds() []string

func (*Submitter) Run

func (srv *Submitter) Run(ctx context.Context) error

func (*Submitter) Validate

func (srv *Submitter) Validate() error

Jump to

Keyboard shortcuts

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