ParallelJobHandlerWorker

class quantizationtools.ParallelJobHandlerWorker(job_queue=None, result_queue=None)

Parallel job-handler worker.

Worker process which runs QuantizationJobs.

>>> import abjad
>>> from abjad.tools import quantizationtools

Not composer-safe.

Used internally by ParallelJobHandler.

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_quantizationtools { graph [label=quantizationtools]; "abjad.tools.quantizationtools.ParallelJobHandlerWorker.ParallelJobHandlerWorker" [color=black, fontcolor=white, group=2, label=<<B>ParallelJobHandlerWorker</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=1, group=0, label=object, shape=box]; } subgraph cluster_multiprocessing { graph [label=multiprocessing]; "multiprocessing.context.Process" [color=2, group=1, label=Process, shape=box]; "multiprocessing.process.BaseProcess" [color=2, group=1, label=BaseProcess, shape=box]; "multiprocessing.process.BaseProcess" -> "multiprocessing.context.Process"; } "builtins.object" -> "multiprocessing.process.BaseProcess"; "multiprocessing.context.Process" -> "abjad.tools.quantizationtools.ParallelJobHandlerWorker.ParallelJobHandlerWorker"; }

Bases

  • multiprocessing.context.Process
  • multiprocessing.process.BaseProcess
  • builtins.object

Attribute summary

authkey
daemon Return whether process is a daemon
exitcode Return exit code of process or None if it has yet to stop
ident Return identifier (PID) of process or None if it has yet to start
is_alive() Return whether process is alive
join([timeout]) Wait until child process terminates
name
pid Return identifier (PID) of process or None if it has yet to start
run() Runs parallel job handler worker.
sentinel Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.
start() Start child process
terminate() Terminate process; sends SIGTERM signal or uses TerminateProcess()
__repr__()

Read-only properties

(BaseProcess).exitcode

Return exit code of process or None if it has yet to stop

(BaseProcess).ident

Return identifier (PID) of process or None if it has yet to start

(BaseProcess).pid

Return identifier (PID) of process or None if it has yet to start

(BaseProcess).sentinel

Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.

Read/write properties

(BaseProcess).authkey
(BaseProcess).daemon

Return whether process is a daemon

(BaseProcess).name

Methods

(BaseProcess).is_alive()

Return whether process is alive

(BaseProcess).join(timeout=None)

Wait until child process terminates

ParallelJobHandlerWorker.run()

Runs parallel job handler worker.

Returns none.

(BaseProcess).start()

Start child process

(BaseProcess).terminate()

Terminate process; sends SIGTERM signal or uses TerminateProcess()

Special methods

(BaseProcess).__repr__()