is_alive

getml.engine.is_alive()

Checks if the getML engine is running.

Raises

ConnectionRefusedError – If unable to connect to engine

Returns

True if the getML engine is running and ready to accept commands and False otherwise.

Return type

bool

Note

The function will return False if no user has logged into the running engine too.

There is a latency of 1-2 seconds in which the function still returns True while the getML monitor has already established the connection.