actions

package
v0.20.40 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package actions provides functionality for simulating bulk operations on jobs during Broadside load tests. It implements scheduled actions that mimic user operations performed via the Lookout UI, such as bulk job set cancellations and reprioritisations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	// contains filtered or unexported fields
}

Actor executes scheduled actions against the database to simulate bulk operations performed by users via the Lookout UI.

func NewActor

func NewActor(
	config configuration.ActionsConfig,
	queueConfigs []configuration.QueueConfig,
	database db.Database,
	metrics *metrics.ActorMetrics,
	testStart time.Time,
) *Actor

NewActor creates a new Actor with the given configuration.

func (*Actor) Run

func (a *Actor) Run(ctx context.Context)

Run starts the actor and executes scheduled actions. It blocks until the context is cancelled or all actions have been executed.

Jump to

Keyboard shortcuts

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