A UWSTransitions with sensible transitions pre-defined.
See the source for what we consider sensible.
The idea here is that you simply override (and usually up-call)
the methods queueJob, markAborted, startJob, completeJob,
killJob, errorOutJob, and ignoreAndLog.
You will have to define startJob and provide some way to execute
startJob on QUEUED jobs (there's nothing wrong with immediately
calling self.startJob(...) if you don't mind the DoS danger).
Once you have startJob, you'll probably want to define killJob as
well.
|
__init__(self,
name)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
queueJob(self,
newState,
wjob,
ignored)
puts a job on the queue. |
source code
|
|
|
|
|
ignoreAndLog(self,
newState,
wjob,
exc)
logs an attempt to transition when it's impossible but
shouldn't result in an error. |
source code
|
|
|
|
|
|
|
completeJob(self,
newPhase,
wjob,
ignored)
pushes a job into the completed state. |
source code
|
|
Inherited from UWSTransitions :
flagError ,
getTransition ,
noOp ,
noteEndTime
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|