ParallelJobHandlerWorker

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

Worker process which runs QuantizationJobs.

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_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_quantizationtools { graph [label=quantizationtools]; "abjad.tools.quantizationtools.ParallelJobHandlerWorker.ParallelJobHandlerWorker" [color=black, fontcolor=white, group=3, label=<<B>ParallelJobHandlerWorker</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } subgraph cluster_multiprocessing { graph [label=multiprocessing]; "multiprocessing.context.Process" [color=3, group=2, label=Process, shape=box]; "multiprocessing.process.BaseProcess" [color=3, group=2, label=BaseProcess, shape=box]; "multiprocessing.process.BaseProcess" -> "multiprocessing.context.Process"; } "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.quantizationtools.ParallelJobHandlerWorker.ParallelJobHandlerWorker"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; "builtins.object" -> "multiprocessing.process.BaseProcess"; "multiprocessing.context.Process" -> "abjad.tools.quantizationtools.ParallelJobHandlerWorker.ParallelJobHandlerWorker"; }

Bases

  • multiprocessing.context.Process
  • multiprocessing.process.BaseProcess
  • abjad.tools.abctools.AbjadObject
  • abjad.tools.abctools.AbjadObject.AbstractBase
  • 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()
__eq__(expr) Is true when ID of expr equals ID of Abjad object.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes Abjad object.
__ne__(expr) Is true when Abjad object does not equal expr.
__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

(AbjadObject).__eq__(expr)

Is true when ID of expr equals ID of Abjad object. Otherwise false.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadObject).__hash__()

Hashes Abjad object.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Returns integer.

(AbjadObject).__ne__(expr)

Is true when Abjad object does not equal expr. Otherwise false.

Returns true or false.

(BaseProcess).__repr__()