wsbuildorchestrator

package
v2.37.14 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wsbuildorchestrator runs the background worker that fulfills workspace build orchestrations once their parent build reaches a terminal state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Logger            slog.Logger
	Database          database.Store
	Pubsub            pubsub.Pubsub
	FileCache         *files.Cache
	BuildUsageChecker *atomic.Pointer[wsbuilder.UsageChecker]
	DeploymentValues  *codersdk.DeploymentValues
	Experiments       codersdk.Experiments
	BuilderMetrics    *wsbuilder.Metrics
	Clock             quartz.Clock
}

type Orchestrator

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

Orchestrator fulfills workspace build orchestrations after their parent builds reach a terminal state.

func New

func New(opts Options) *Orchestrator

New constructs an Orchestrator. Call Start to begin processing.

func (*Orchestrator) Close

func (o *Orchestrator) Close()

Close stops the orchestrator and waits for its goroutines to exit.

func (*Orchestrator) Start

func (o *Orchestrator) Start(ctx context.Context)

Start launches the orchestrator's background goroutines. It is safe to call more than once; only the first call has any effect. Call Close to stop the goroutines and wait for their exit.

Jump to

Keyboard shortcuts

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