Context

open class Context(val submissionId: String, val assignmentConfigId: Long, stageWaitDuration: Duration = Duration.ofMinutes(1), earlyReturnOnThrow: Boolean = false, val envContext: EnvContext) : PartialContext

Context captures paths and naming conventions of the various machines involved in the Runner Such that this could be dynamically crafted and injected to the Runner, independent of the pipeline

Constructors

Link copied to clipboard
constructor(submissionId: String, assignmentConfigId: Long, stageWaitDuration: Duration = Duration.ofMinutes(1), earlyReturnOnThrow: Boolean = false, envContext: EnvContext)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
private data class Name(val submissionId: String, val assignmentConfigId: Long, val timeStamp: Long, val randomness: Int)

Properties

Link copied to clipboard

id for the assignment config

Link copied to clipboard

The name of the coroutine associated to this runner.

Link copied to clipboard

The directory name relative to outPathRoots unique to this execution.

Link copied to clipboard

whether to early exit the pipeline as long as a pipeline stage throws (non-zero exit code)

Link copied to clipboard

amount of cpu and memory resources allocated to the runner

Link copied to clipboard
Link copied to clipboard

generatedSub is the relative path mapping for submission generated files from inPaths.envHostRoot, to directory in the volume

Link copied to clipboard

inPaths for the mounted inPaths.graderHostRoot and corresponding inPaths.envHostRoot, serves for data input outPathRoots for the mounted outPaths.graderHostRoot and corresponding outPaths.envHostRoot, serves for data output where Runner.Context.outPaths is outPathRoots appended with the name, such that this is specific to a runner instance

Link copied to clipboard
Link copied to clipboard

this Name builds a unique identifier for this execution upon its submission (submissionId), config and pipeline (assignmentConfigId), time and further randomness

Link copied to clipboard
Link copied to clipboard

outPaths are the output paths of the Runner, specific to the dirName

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

sourceName is the source directory mapped in the volume, containing submission possibly blended with provided and/or solution

Link copied to clipboard

maximum amount of time to wait before timeout of a pipeline stage

Link copied to clipboard

submission is the relative path mapping for submission files from inPaths.envHostRoot, to directory in the volume

Link copied to clipboard

submission id for the submission, relayed from IPC, to be executed against its Pipeline

Link copied to clipboard

template is the relative path mapping for template files from inPaths.envHostRoot, to directory in the volume skeleton is the relative path mapping for skeleton files from inPaths.envHostRoot, to directory in the volume provided is the relative path mapping for provided files from inPaths.envHostRoot, to directory in the volume generated is the relative path mapping for generated files from inPaths.envHostRoot, to directory in the volume

Functions

Link copied to clipboard
Link copied to clipboard