poli.core.util.observer_wrapper.start_observer_process

poli.core.util.observer_wrapper.start_observer_process#

poli.core.util.observer_wrapper.start_observer_process(observer_name, port: int, password: str)#

Starts the observer process.

Parameters
  • observer_name (str) – The name of the observer to instantiate.

  • port (int) – The port number for the connection with the mother process.

  • password (str) – The password for the connection with the mother process.

Notes

This function starts the observer process by establishing a connection with the mother process, receiving setup information, instantiating the observer, initializing the observer with the setup information, and then waiting for observe calls. If an exception occurs during observation or attribute retrieval, it is sent back to the mother process.

The observer process can be terminated by sending a “QUIT” message.