jobhandlers
Abstract Classes
Abstact job-handler. |
- abstract class abjadext.nauert.jobhandlers.JobHandler[source]
Abstact job-handler.
JobHandlers
control howQuantizationJob
instances are processed by thequantize
function, either serially or in parallel.Attributes Summary
Calls job handler.
Special methods
Classes
Parallel job-handler. |
|
Parallel job-handler worker. |
|
Serial job-handler. |
- class abjadext.nauert.jobhandlers.ParallelJobHandler[source]
Parallel job-handler.
Processes
QuantizationJob
instances in parallel, based on the number of CPUs available.Attributes Summary
Calls parallel job handler.
Special methods
- class abjadext.nauert.jobhandlers.ParallelJobHandlerWorker(job_queue=None, result_queue=None)[source]
Parallel job-handler worker.
Worker process which runs
QuantizationJobs
.Not composer-safe.
Used internally by
ParallelJobHandler
.Attributes Summary
Runs parallel job handler worker.
Special methods
-
(
BaseProcess
).__repr__() Return repr(self).
Methods
-
(
BaseProcess
).close() Close the Process object.
This method releases resources held by the Process object. It is an error to call this method if the child process is still running.
-
(
BaseProcess
).is_alive() Return whether process is alive
-
(
BaseProcess
).join(timeout=None) Wait until child process terminates
-
(
BaseProcess
).kill() Terminate process; sends SIGKILL signal or uses TerminateProcess()
-
(
BaseProcess
).start() Start child process
-
(
BaseProcess
).terminate() Terminate process; sends SIGTERM signal or uses TerminateProcess()
Read/write properties
-
(
BaseProcess
).authkey
-
(
BaseProcess
).daemon Return whether process is a daemon
-
(
BaseProcess
).name
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.
-
(
- class abjadext.nauert.jobhandlers.SerialJobHandler[source]
Serial job-handler.
Attributes Summary
Calls serial job handler.
Special methods
- overridden __call__(jobs: Sequence[QuantizationJob]) Sequence[QuantizationJob] [source]
Calls serial job handler.
Returns
jobs
.