lsst.ctrl.pool  20.0.0+ae1f90c85c
Classes | Functions | Variables
lsst.ctrl.pool.parallel Namespace Reference

Classes

class  Batch
 
class  BatchArgumentParser
 
class  BatchCmdLineTask
 
class  BatchParallelTask
 
class  BatchPoolTask
 
class  BatchTaskRunner
 
class  PbsBatch
 
class  SlurmBatch
 
class  SmpBatch
 

Functions

def shQuote (arg)
 
def shCommandFromArgs (args)
 
def processStats ()
 
def printProcessStats ()
 
def exportEnv ()
 

Variables

int UMASK = 0o002
 
dictionary BATCH_TYPES
 

Function Documentation

◆ exportEnv()

def lsst.ctrl.pool.parallel.exportEnv ( )
Generate bash script to regenerate the current environment

Definition at line 409 of file parallel.py.

◆ printProcessStats()

def lsst.ctrl.pool.parallel.printProcessStats ( )
Print the process statistics to the log

Definition at line 61 of file parallel.py.

◆ processStats()

def lsst.ctrl.pool.parallel.processStats ( )
Collect Linux-specific process statistics

Parses the /proc/self/status file (N.B. Linux-specific!) into a dict
which is returned.

Definition at line 47 of file parallel.py.

◆ shCommandFromArgs()

def lsst.ctrl.pool.parallel.shCommandFromArgs (   args)
Convert a list of shell arguments to a shell command-line

Definition at line 42 of file parallel.py.

◆ shQuote()

def lsst.ctrl.pool.parallel.shQuote (   arg)
Quote the argument for the shell.

>>> quote('\t')
'\\\t'
>>> quote('foo bar')
'foo\\ bar'

Definition at line 27 of file parallel.py.

Variable Documentation

◆ BATCH_TYPES

dictionary lsst.ctrl.pool.parallel.BATCH_TYPES
Initial value:
1 = {'none': None,
2  'None': None,
3  'pbs': PbsBatch,
4  'slurm': SlurmBatch,
5  'smp': SmpBatch,
6  }

Definition at line 290 of file parallel.py.

◆ UMASK

int lsst.ctrl.pool.parallel.UMASK = 0o002

Definition at line 20 of file parallel.py.