executor

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package executor provides the pipeline execution engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine manages the lifecycle of a task runtime, enforcing single-task execution and providing state introspection.

func New

func New(runtimeType string) *Engine

New creates a new Engine for the given runtime type without initializing the underlying runtime. The runtime is lazily initialized on the first Run.

func (*Engine) Close added in v0.92.0

func (e *Engine) Close() error

Close cleans up the engine's runtime resources and marks the engine as closed. It is safe to call Close multiple times; subsequent calls are no-ops.

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, t *types.Task) error

Run executes the given task, enforcing that only one task runs at a time. It returns an error if the engine is already running or has been closed.

func (*Engine) State

func (e *Engine) State() string

State returns the current engine state as a human-readable string.

type Limits

type Limits struct {
	DefaultCPUsLimit   string
	DefaultMemoryLimit string
}

Limits defines default resource constraints applied to tasks that do not specify their own.

Directories

Path Synopsis
Package runtime implements pipeline task execution runtimes.
Package runtime implements pipeline task execution runtimes.
capability
Package capability implements capability-based execution runtime.
Package capability implements capability-based execution runtime.
docker
Package docker implements the Docker execution runtime.
Package docker implements the Docker execution runtime.
machine
Package machine implements the machine execution runtime.
Package machine implements the machine execution runtime.
shell
Package shell implements the shell command execution runtime.
Package shell implements the shell command execution runtime.

Jump to

Keyboard shortcuts

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