class documentation
class _JobProcessor(object):
Undocumented
Method | __call__ |
Continues execution of a job. |
Method | __init__ |
Initializes this class. |
Constant | DEFER |
Undocumented |
Constant | FINISHED |
Undocumented |
Constant | WAITDEP |
Undocumented |
Instance Variable | job |
Undocumented |
Instance Variable | opexec |
Undocumented |
Instance Variable | queue |
Undocumented |
Static Method | _ |
Checks if an opcode has dependencies and if so, processes them. |
Static Method | _ |
Locates the next opcode to run. |
Static Method | _ |
Marks an opcode as waiting for locks. |
Method | _ |
Processes one opcode and returns the result. |
Instance Variable | _timeout |
Undocumented |
Continues execution of a job.
Parameters | |
_nextop | Callback function for tests |
Returns | |
FINISHED if job is fully processed, DEFER if the job should be deferred and WAITDEP if the dependency manager (_JobDependencyManager ) will re-schedule the job when appropriate |
def __init__(self, queue, opexec_fn, job, _timeout_strategy_factory=mcpu.LockAttemptTimeoutStrategy):
¶
Initializes this class.
Checks if an opcode has dependencies and if so, processes them.
Parameters | |
queue:JobQueue | Queue object |
job:_QueuedJob | Job object |
opctx:_OpExecContext | Opcode execution context |
Returns | |
bool | Whether opcode will be re-scheduled by dependency tracker |
Locates the next opcode to run.
Parameters | |
job:_QueuedJob | Job object |
timeout | Callable to create new timeout strategy |
Marks an opcode as waiting for locks.
The job's start timestamp is also set if necessary.
Parameters | |
job:_QueuedJob | Job object |
op:_QueuedOpCode | Opcode object |