jobqueues.sgequeue module#

class jobqueues.sgequeue.SgeQueue(_configapp=None, _configfile=None, _findExecutables=True, _logger=True)#

Bases: SimQueue

Queue system for Sun Grid Engine

#TODO: SGE documentation

Examples

>>> s = SgeQueue()
>>> s.jobname = 'simulation1'
>>> s.queue = 'multiscale'
>>> s.submit('/my/runnable/folder/')  # Folder containing a run.sh bash script
inprogress()#

Returns the sum of the number of running and queued workunits of the specific group in the engine.

Returns

total – Total running and queued workunits

Return type

int

property memory#

Subclasses need to have this property. This property is expected to return a integer in MiB

property ncpu#

Subclasses need to have this property

property ngpu#

Subclasses need to have this property

retrieve()#

Subclasses need to implement this method

stop()#

Cancels all currently running and queued jobs

submit(dirs, commands=None)#

Submits all directories

Parameters

dirs (list) – A list of executable directories.