Documentation
¶
Index ¶
- type ClusterJobs
- type Job
- type JobStatus
- func (js *JobStatus) AdvanceReservationID() int
- func (js *JobStatus) DestinationHostList() []string
- func (js *JobStatus) DestinationHostListOfTask(task int) []string
- func (js *JobStatus) DestinationQueueInstanceList() []string
- func (js *JobStatus) DestinationQueueInstanceListOfTask(task int) []string
- func (js *JobStatus) DestinationSlotsList() []string
- func (js *JobStatus) HardRequests() ([]string, []string)
- func (js *JobStatus) HasMemoryBinding() bool
- func (js *JobStatus) HasNoShell() bool
- func (js *JobStatus) HasReservation() bool
- func (js *JobStatus) IsArrayJob() bool
- func (js *JobStatus) IsBinaryJob() bool
- func (js *JobStatus) IsImmediateJob() bool
- func (js *JobStatus) JobAccountName() string
- func (js *JobStatus) JobArgs() []string
- func (js *JobStatus) JobClassName() string
- func (js *JobStatus) JobDeadline() time.Time
- func (js *JobStatus) JobGID() int
- func (js *JobStatus) JobGroup() string
- func (js *JobStatus) JobID() int64
- func (js *JobStatus) JobMergesStderr() bool
- func (js *JobStatus) JobName() string
- func (js *JobStatus) JobOwner() string
- func (js *JobStatus) JobScript() string
- func (js *JobStatus) JobUID() int
- func (js *JobStatus) MailAdresses() []string
- func (js *JobStatus) MailOptions() string
- func (js *JobStatus) MemoryBinding() string
- func (js *JobStatus) ParallelEnvironment() string
- func (js *JobStatus) ParallelEnvironmentMax() int64
- func (js *JobStatus) ParallelEnvironmentMin() int64
- func (js *JobStatus) ParallelEnvironmentStep() int64
- func (js *JobStatus) PosixPriority() int
- func (js *JobStatus) ResourceUsage(task int) ([]string, []string)
- func (js *JobStatus) RunTime() time.Duration
- func (js *JobStatus) StartTime() time.Time
- func (js *JobStatus) SubmissionTime() time.Time
- func (js *JobStatus) TaskStartTime(taskID int) time.Time
- func (js *JobStatus) TasksCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterJobs ¶
type ClusterJobs struct {
// contains filtered or unexported fields
}
ClusterJobs contains all jobs found in the cluster.
func GetClusterJobs ¶
func GetClusterJobs() (clusterjobs ClusterJobs, err error)
GetClusterJobs performs internally a job status call (qstat) to the cluster to get more detailed information about the job status then what plain DRMAA offers.
func (*ClusterJobs) AllJobs ¶
func (cjs *ClusterJobs) AllJobs() []Job
AllJobs returns a new slice of jobs found in the cluster by qstat.
type Job ¶
type Job struct { Number int64 Priority float64 Name string Owner string State string StartTime string QueueName string JobClass string Slots int64 }
Job represents the state of a job and its properties.
type JobStatus ¶
type JobStatus struct {
// contains filtered or unexported fields
}
JobStatus represents fine detailed job status information. It offers more details than the Job struct. The information is collected by calling qstat -j when using Grid Engine.
func GetJobStatus ¶
GetJobStatus returns the job status object, which contains all information about a job. In case of any error it is nil and a drmaa error is returned.
func (*JobStatus) AdvanceReservationID ¶
AdvanceReservationID returns the ID of the advance reservation the job is running in. Note that this ID has no relationship to the job IDs.
func (*JobStatus) DestinationHostList ¶
DestinationHostList returns all host names where the job (the first task in case of array jobs) is running.
func (*JobStatus) DestinationHostListOfTask ¶
DestinationHostListOfTask returns all hosts a parallel array job task is running on.
func (*JobStatus) DestinationQueueInstanceList ¶
DestinationQueueInstanceList returns all queue instance names where the job is running. A queue instance contains a host and a "@" queue part, where the job is scheduled to.
func (*JobStatus) DestinationQueueInstanceListOfTask ¶
DestinationQueueInstanceListOfTask returns the queue instances of a particular array job task.
func (*JobStatus) DestinationSlotsList ¶
DestinationSlotsList returns a list of slots used on the queue instances.
func (*JobStatus) HardRequests ¶
HardRequests returns hard resource requests as name and value pairs. Names are the first slice the values are encoded in the second slice. TODO make a map of it...
func (*JobStatus) HasMemoryBinding ¶
HasMemoryBinding returns true in case the job has memory binding requested.
func (*JobStatus) HasNoShell ¶
HasNoShell returns true if the job had requested -shell no.
func (*JobStatus) HasReservation ¶
HasReservation return true if the job requested a resource reservation.
func (*JobStatus) IsArrayJob ¶
IsArrayJob returns true in case the job is an array job.
func (*JobStatus) IsBinaryJob ¶
IsBinaryJob returns the group of the job owner.
func (*JobStatus) IsImmediateJob ¶
IsImmediateJob returns true in case of an interactive job or a -now y batch job.
func (*JobStatus) JobAccountName ¶
JobAccountName returns the accounting string assigned to the job.
func (*JobStatus) JobClassName ¶
JobClassName returns the name of the requested job class.
func (*JobStatus) JobDeadline ¶
JobDeadline returns if the job has set a deadline for starting up.
func (*JobStatus) JobMergesStderr ¶
JobMergesStderr returns true if job merges stderr to stdout.
func (*JobStatus) MailAdresses ¶
MailAdresses returns all mail addresses the job is sending information about its state.
func (*JobStatus) MailOptions ¶
MailOptions returns the mail options which determines on which event emails about job status change is sent.
func (*JobStatus) MemoryBinding ¶
MemoryBinding returns the status of the actual memory binding done for the processes of the job.
func (*JobStatus) ParallelEnvironment ¶
ParallelEnvironment returns the name of the parallel environment requested by a job.
func (*JobStatus) ParallelEnvironmentMax ¶
ParallelEnvironmentMax returns the maximum amount of slots required by the parallel job. It is equal to ParallelEnvironmentMin() in case of a fixed amount of slots were requested (which is the standard case).
func (*JobStatus) ParallelEnvironmentMin ¶
ParallelEnvironmentMin contains the amount of slots requested by a parallel jobs.
func (*JobStatus) ParallelEnvironmentStep ¶
ParallelEnvironmentStep is the step size of a slot range request of a parallel job.
func (*JobStatus) PosixPriority ¶
PosixPriority returns the POSIX priority the job has requested. The default priority for the POSIX policy is 0 ranging from -1023 till 1024. Only administrators can set a positive priority.
func (*JobStatus) ResourceUsage ¶
ResourceUsage returns the measurements of resource consumption by the processes of a job.
func (*JobStatus) RunTime ¶
RunTime return since how long is the job running. Note that the run-time is dynamically calculated assuming that the start time stamp in the cluster is in the same time zone then the actual RunTime() call. */
func (*JobStatus) StartTime ¶
StartTime is when the job was dispatched to the execution host in order to start up the processes.
func (*JobStatus) SubmissionTime ¶
SubmissionTime is the time when the job was submitted and accepted by the cluster.
func (*JobStatus) TaskStartTime ¶
TaskStartTime is the start time of a specific task of the job (for array jobs).
func (*JobStatus) TasksCount ¶
TasksCount retursn the amount of array job tasks an job array consists of.
Directories
¶
Path | Synopsis |
---|---|
Package geparser contains functions for parsing Univa Grid Engine qstat -xml output.
|
Package geparser contains functions for parsing Univa Grid Engine qstat -xml output. |