Module workCmdlineBackEnd :: Class WorkCmdlineBackEnd
[hide private]
[frames] | no frames]

Class WorkCmdlineBackEnd

source code


A backend for a python-based cmdrange jobtype which allows for extensible log parsing.

Instance Methods [hide private]
 
__init__(self, job)
Function to initialize class members.
source code
 
executeWork(self)
Now that we've got a job from the supervisor and have fired up the python interpreter in the child process, it's time to ask the supervisor for an agenda item to process.
source code

Inherited from qb.backend.commandBackEnd.CommandBackEnd: runCmd, runCmdWithSubprocess

Inherited from qb.backend.pythonBackEnd.PythonQubeBackEnd: getLogData, hasJobPhaseCmds, jobSetup, jobTeardown, logHandler, parseLogData, printClassInfo, updateResultPackage, validateOutputFileSize

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from qb.backend.pythonBackEnd.PythonQubeBackEnd: LOGREAD_TIME_THRESHOLD, QB_WAITING_TIMEOUT

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, job)
(Constructor)

source code 

Function to initialize class members.

Parameters:
  • job - The qube job object passed to the worker, this represents a job instance.
Overrides: object.__init__
(inherited documentation)

executeWork(self)

source code 

Now that we've got a job from the supervisor and have fired up the python interpreter in the child process, it's time to ask the supervisor for an agenda item to process.

Everything we need to know to get the work done is in either the job's or the work's package dict.

Raises:
  • NotImplementedError - Raised when this method is not overridden in a derived class.
Overrides: qb.backend.pythonBackEnd.PythonQubeBackEnd.executeWork