SpawnedServer#

class scikitplot.mlflow.SpawnedServer(_process, _command, _started_at)[source]#

Spawned MLflow server process state.

Attributes:
processsubprocess.Popen

The underlying server process.

commandlist[str]

The command used to launch the server.

Parameters:
property command: list[str]#

The command used to launch the server.

property process: Popen#

The underlying server process.

read_all_output()[source]#

Read all remaining captured stdout (best-effort).

Returns:
str

Captured output text, or an empty string.

Return type:

str

property started_at: float#

Timestamp (time.time()) when the server was started.

terminate()[source]#

Terminate the spawned process deterministically.

Returns:
None
Return type:

None

Notes

Cross-platform strict teardown: - POSIX: terminates the whole process group (start_new_session=True). - Windows: attempts CTRL_BREAK_EVENT for process group, then terminate/kill.