hpc

package module
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const JobCompletionString = "Batch job completed successfully."

printed at the end of log files so we know when to stop tailing.

View Source
const NFSTimeout = "1m"

timeout for largest possible delay to expect from NFS servers for file data This is a Duration string.

Variables

This section is empty.

Functions

func Contains

func Contains(illegalArgs []string, elementToTest string) bool

This function exists to help the native spec system

Types

type BatchJob added in v1.4.3

type BatchJob interface {
	New() (interface{}, error)
	RunJob() (error, error)
	KillJob() error
}

type CobaltJob

type CobaltJob struct {
	*Job
	// contains filtered or unexported fields
}

func (*CobaltJob) KillJob

func (j *CobaltJob) KillJob() (err error)

KillJob build command to kill job (qdel), j.jobID must be assigned. Returns system error if encountered.

func (CobaltJob) New

func (j CobaltJob) New(job *Job) (CobaltJob, error)

func (*CobaltJob) RunJob

func (j *CobaltJob) RunJob() (builderr error, syserr error)

type Job

type Job struct {
	ScriptContents  string
	NativeSpecs     []string
	UID             int
	GID             int
	OutputScriptPth string
	BatchExecution  bool
	PrintToParent   func(string)
	PrintWarning    func(string)
	SpecifiedBatch  string // User specified batch system to be used (automated if nil)
	ParentJobID     string // Parent's unique job id (e.g. CI_JOB_ID)
	CurrentLSF      LSFJob
	CurrentSLURM    SlurmJob
	CurrentCOBALT   CobaltJob
}

func (*Job) CheckIllegalParams

func (j *Job) CheckIllegalParams(input []string, illegalParams []string) []string

Generate warning (string) if specified arguments are encountered

func (*Job) Kill

func (j *Job) Kill()

func (*Job) New added in v1.4.3

func (j *Job) New(job *Job) (*Job, error)

func (*Job) Run

func (j *Job) Run() (builderr error, syserr error)

Initial func run. Gets batch system and calls the corresponding run

func (*Job) RunJob added in v1.4.3

func (j *Job) RunJob() (error, error)

RunJob executes a "no-batch" script on the host shell, bypassing the underlying scheduler. Return build, system error if encountered

type LSFJob

type LSFJob struct {
	*Job
	// contains filtered or unexported fields
}

func (*LSFJob) KillJob

func (j *LSFJob) KillJob() (err error)

KillJob build command to kill job (scancel), j.jobID must be assigned. Returns system error if encountered.

func (LSFJob) New

func (j LSFJob) New(job *Job) (LSFJob, error)

func (*LSFJob) RunJob

func (j *LSFJob) RunJob() (builderr error, syserr error)

type SlurmJob

type SlurmJob struct {
	*Job
	// contains filtered or unexported fields
}

func (*SlurmJob) KillJob

func (j *SlurmJob) KillJob() (err error)

KillJob build command to kill job (scancel), j.jobID must be assigned. Returns system error if encountered.

func (SlurmJob) New

func (j SlurmJob) New(job *Job) (SlurmJob, error)

func (*SlurmJob) RunJob

func (j *SlurmJob) RunJob() (builderr error, syserr error)

Jump to

Keyboard shortcuts

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