serial

Module: environments.backends.serial

Serial process execution on the local machine for easy debugging

All processes are executed in sequence in the main process thread. This does not exploit multiple cores or grids but simplifies debugging and gives a simple implementation.

Inheritance diagram for pySPACE.environments.backends.serial:

Inheritance diagram of pySPACE.environments.backends.serial

SerialBackend

class pySPACE.environments.backends.serial.SerialBackend[source]

Bases: pySPACE.environments.backends.base.Backend

A backend that allows for easy debugging since the program flow is not threaded or distributed over several OS processes.

Class Components Summary

__abstractmethods__
_abc_cache
_abc_negative_cache
_abc_negative_cache_version
_abc_registry
check_status() Returns a description of the current state of the operations execution.
cleanup() Remove the current operation and all potential results that
consolidate() Consolidates the results of the single processes into a consistent result of the whole
execute([timeout]) Executes all processes specified in the currently staged operation.
retrieve([timeout]) Returns the result of the operation.
stage_in(operation) Stage the current operation
__init__()[source]
stage_in(operation)[source]

Stage the current operation

execute(timeout=1000000.0)[source]

Executes all processes specified in the currently staged operation.

check_status()[source]

Returns a description of the current state of the operations execution.

retrieve(timeout=1000000.0)[source]

Returns the result of the operation.

This is trivial in the Debug-Backend since execute blocks.

consolidate()[source]

Consolidates the results of the single processes into a consistent result of the whole operation

cleanup()[source]

Remove the current operation and all potential results that have been stored in this object

__abstractmethods__ = frozenset([])
_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 33
_abc_registry = <_weakrefset.WeakSet object>