iqm.iqm_client.cli.token_manager.check_token_manager

iqm.iqm_client.cli.token_manager.check_token_manager#

iqm.iqm_client.cli.token_manager.check_token_manager(tokens_file: str) int | None#

Check whether a token manager related to the given tokens_file is running.

Parameters:

tokens_file (str) – Path to a tokens JSON file.

Returns:

PID of the process if process is running, None otherwise.

Return type:

Optional[int]