Documentation ¶
Index ¶
- func NewAllocator() *allocator
- type Tracker
- func (dt *Tracker) AddArrayJob(jt drmaa2interface.JobTemplate, begin, end, step, maxParallel int) (string, error)
- func (dt *Tracker) AddJob(jt drmaa2interface.JobTemplate) (string, error)
- func (dt *Tracker) DeleteJob(jobid string) error
- func (dt *Tracker) JobControl(jobid, state string) error
- func (dt *Tracker) JobInfo(jobid string) (drmaa2interface.JobInfo, error)
- func (dt *Tracker) JobState(jobid string) (drmaa2interface.JobState, string, error)
- func (dt *Tracker) ListArrayJobs(ID string) ([]string, error)
- func (dt *Tracker) ListJobCategories() ([]string, error)
- func (dt *Tracker) ListJobs() ([]string, error)
- func (dt *Tracker) Wait(jobid string, timeout time.Duration, state ...drmaa2interface.JobState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAllocator ¶ added in v0.3.0
func NewAllocator() *allocator
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks singularity container.
func (*Tracker) AddArrayJob ¶
func (dt *Tracker) AddArrayJob(jt drmaa2interface.JobTemplate, begin, end, step, maxParallel int) (string, error)
AddArrayJob creates ~(end - begin)/step Singularity containers.
func (*Tracker) AddJob ¶
func (dt *Tracker) AddJob(jt drmaa2interface.JobTemplate) (string, error)
AddJob creates a new Singularity container.
func (*Tracker) DeleteJob ¶
DeleteJob removes the job from the internal storage. It errors when the job is not yet in any end state.
func (*Tracker) JobControl ¶
JobControl suspends, resumes, or stops a Singularity container.
func (*Tracker) JobInfo ¶
func (dt *Tracker) JobInfo(jobid string) (drmaa2interface.JobInfo, error)
JobInfo returns detailed information about the job.
func (*Tracker) ListArrayJobs ¶
ListArrayJobs shows all containers which belong to a certain job array.
func (*Tracker) ListJobCategories ¶
ListJobCategories returns nothing.
Click to show internal directories.
Click to hide internal directories.