JobMinder | index /local_disk/sherwood/RTT/Tools/RunTimeTester/RunTimeTester-00-00-10/src/JobMinder.py |
This file contains:
a factory function - to create instances of sub classes of JobMinder
a base class - JobMinder
JobMinder acts like a state machine. It has states: queued, running, success, error,
it nows how to proceed from one state to the next, and species the actions to be
performed when the state changes. The way jobs are submited, and the names of
log files are examples of items that change with mode.
Subclassing is used to specialse according to mode.
The base class also specifies common tasks that must be performed across job mode
boundaries:
- database manipulations for jobs which store reference files
- various protection manipulations to allow other mebers of the same UNIX group
to manipulate files on future runs.
- copying files to be stored at the end of the job
- actions to be taken of there is a forced shutdown
(triggered by receiving a signal 15)
PS
Modules | ||||||
|
Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Data | ||
__file__ = './JobMinder.py' __name__ = 'JobMinder' |