class documentation

Interface for FiftyOne services.

All services must define a command property.

Services are run in an isolated Python subprocess (see service/main.py) to ensure that they are shut down when the main Python process exits. The command and working_dir properties control the execution of the service in the subprocess.

Method __del__ Stops the service.
Method __init__ Undocumented
Method start Starts the service.
Method stop Stops the service.
Method wait Waits for the service to exit and returns its exit code.
Class Variable allow_headless Undocumented
Class Variable service_name Undocumented
Class Variable working_dir Undocumented
Instance Variable child Undocumented
Property command Undocumented
Property env Undocumented
Method _wait_for_child_port Waits for any child process of this service to bind to a TCP port.
Instance Variable _disabled Undocumented
Instance Variable _system Undocumented
Property _service_args Arguments passed to the service entrypoint.
def __del__(self): (source)

Stops the service.

def __init__(self): (source)

Undocumented

def stop(self): (source)

Stops the service.

def wait(self): (source)

Waits for the service to exit and returns its exit code.

working_dir: str = (source)

Undocumented

def _wait_for_child_port(self, port=None, timeout=60): (source)

Waits for any child process of this service to bind to a TCP port.

Parameters
port:Noneif specified, wait for a child to bind to this port
timeout:60the number of seconds to wait before failing
Returns
the port the child has bound to (equal to the port argument if specified)
Raises
ServiceListenTimeoutif the timeout was exceeded
_disabled = (source)

Undocumented

Undocumented

@property
_service_args = (source)

Arguments passed to the service entrypoint.