runner

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsolationMode

type IsolationMode string

IsolationMode controls how each job's working tree is materialized.

  • IsolationAuto: stage per-job when effective concurrency > 1 (default)
  • IsolationWorkspace: always stage per job
  • IsolationNone: share the source tree across all jobs (legacy behavior)
const (
	IsolationAuto      IsolationMode = "auto"
	IsolationWorkspace IsolationMode = "workspace"
	IsolationNone      IsolationMode = "none"
)

type JobState

type JobState = state.JobState

type Runner

type Runner struct {
	WorkDir            string
	UseWorkDirOverride bool
	Stdout             io.Writer
	Stderr             io.Writer
	DryRun             bool
	JobID              string
	Retry              bool
	Verbose            bool
	Color              bool
	Executor           executor.Executor
	Runtime            executor.RuntimeContext
	Store              *state.Store
	ExecID             string
	Concurrency        int
	FilterComponents   []string
	FilterEnv          string
	Isolation          IsolationMode
	KeepWorkspaces     bool

	ComponentConcurrency int
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(
	workDir string,
	useWorkDirOverride bool,
	stdout, stderr io.Writer,
	dryRun bool,
	jobID string,
	retry bool,
	verbose bool,
	exec executor.Executor,
	runtime executor.RuntimeContext,
	store *state.Store,
	execID string,
	concurrency int,
	filterComponents []string,
	filterEnv string,
) *Runner

func (*Runner) Run

func (r *Runner) Run(plan *model.Plan) (runErr error)

type State

type State = state.ExecState

State is kept for backwards compat with tests referencing old types.

Jump to

Keyboard shortcuts

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