job

package
v2.2.0-20240131 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxContainerTerminationMessageLength is the upper bound any one container may write to
	// its termination message path. Contents above this length will cause a failure.
	MaxContainerTerminationMessageLength = 1024 * 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Ctx              *meta.JobContext
	StartTime        time.Time
	ActiveWorkspace  string
	UserEnvs         map[string]string
	OutputsJsonBytes []byte
	ConfigMapUpdater configmap.Updater
}

func NewJob

func NewJob() (*Job, error)

func (*Job) AfterRun

func (j *Job) AfterRun(ctx context.Context) error

func (*Job) EnsureActiveWorkspace

func (j *Job) EnsureActiveWorkspace(workspace string) error

func (*Job) Run

func (j *Job) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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