is_alive

getml.engine.is_alive()[source]

Checks if the getML engine is running.

Raises:

ConnectionRefusedError: If unable to connect to engine

Returns:

bool:

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

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.