jobrunner

package
v4.55.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobConfigEnvVar = "JOB_CONFIG"
View Source
var NoOpCommand = "noop"

Functions

func RunJob

func RunJob(logWD bool) error

Downloads files required for job to run. These are read from an env var Parameters:

  • logWD should be false for testing - we don't want to log the working dir if we're running as a test because it may differ on different machines and fail the test...

Types

type JobConfig

type JobConfig struct {
	// The job id
	JobId string

	// What files are required to be present when running the job?
	RequiredFiles []JobFilePath

	// What command to execute
	Command string
	Args    []string

	// What to upload on completion (if file doesn't exist, it can be ignored with a warning)
	OutputFiles []JobFilePath
}

func (JobConfig) Copy

func (c JobConfig) Copy() JobConfig

type JobFilePath

type JobFilePath struct {
	// The remote file info
	RemoteBucket string
	RemotePath   string

	// Local copy
	LocalPath string
}

Jump to

Keyboard shortcuts

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