config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultDBURI = "contest:contest@tcp(localhost:3306)/contest?parseTime=true"

DefaultDBURI represents the default URI used by the rdbms plugin

View Source
const DefaultTargetLockDuration = 10 * time.Minute

DefaultTargetLockDuration is the default value for -targetLockDuration. It is the amount of time target lock is extended by while the job is running.

View Source
const MinStorageVersion = 0

MinStorageVersion defines the minimum requires version that contest can run on

Variables

View Source
var TargetManagerAcquireTimeout = 5 * time.Minute

TargetManagerAcquireTimeout represents the maximum time that JobManager should wait for the execution of Acquire function from the chosen TargetManager

View Source
var TargetManagerReleaseTimeout = 5 * time.Minute

TargetManagerReleaseTimeout represents the maximum time that JobManager should wait for the execution of Release function from the chosen TargetManager

View Source
var TestRunnerMsgTimeout = 5 * time.Second

TestRunnerMsgTimeout represents the maximum time that any component of the TestRunner will wait for the delivery of a message to any other subsystem of the TestRunner

View Source
var TestRunnerShutdownTimeout = 30 * time.Second

TestRunnerShutdownTimeout controls a block of the TestRunner which works as a watchdog, i.e. if there are multiple steps that need to return, the timeout is reset every time a step returns. The timeout should be handled so that it doesn't reset when a TestStep returns.

View Source
var TestRunnerStepShutdownTimeout = 5 * time.Second

TestRunnerStepShutdownTimeout controls a block of the TestRunner which worksas a watchdog, i.e. if there are multiple steps that need to return, the timeout is reset every time a step returns. The timeout should be handled so that it doesn't reset when a TestStep returns.

Functions

func ParseJobDescriptor

func ParseJobDescriptor(data []byte, jobDescFormat JobDescFormat) ([]byte, error)

ParseJobDescriptor validates a job descriptor's well-formedness, and returns a JSON-formatted descriptor if it was provided in a different format. The currently supported format are JSON and YAML.

Types

type JobDescFormat

type JobDescFormat int

JobDescFormat defines a type for the supported formats for job descriptor configurations.

const (
	JobDescFormatJSON JobDescFormat = iota
	JobDescFormatYAML
)

List of supported job descriptor formats

Jump to

Keyboard shortcuts

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