boulderopalscaleup.runtime.RuntimeOptions

class boulderopalscaleup.runtime.RuntimeOptions(exec_mode=ExecutionMode.SYNC, close_on_system_error=True, close_on_exec_error=False, close_on_finalize=True)

Options for runtime behavior.

Parameters

  • exec_mode (ExecutionMode) – The execution mode the runtime should operate in. As of implementation, the runtime protocols are intended to only support one execution mode per runtime. There is no intention to support mixed execution modes.
  • close_on_system_error (bool) – Whether to close the runtime and component systems if there are any errors during binding and/or adding of new systems.
  • close_on_exec_error (bool) – Whether to close the runtime and component systems if an executable bound to this runtime raises an error during execution.
  • close_on_finalize (bool) – When set, the runtime will invoke its close method (closing all registered systems) on object finalization (via weakref).

Methods

init

Was this useful?