Documentation ¶
Index ¶
Constants ¶
const DefaultDBURI = "contest:contest@tcp(localhost:3306)/contest?parseTime=true"
DefaultDBURI represents the default URI used by the rdbms plugin
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.
const MinStorageVersion = 0
MinStorageVersion defines the minimum requires version that contest can run on
Variables ¶
var TargetManagerAcquireTimeout = 5 * time.Minute
TargetManagerAcquireTimeout represents the maximum time that JobManager should wait for the execution of Acquire function from the chosen TargetManager
var TargetManagerReleaseTimeout = 5 * time.Minute
TargetManagerReleaseTimeout represents the maximum time that JobManager should wait for the execution of Release function from the chosen TargetManager
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
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.
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