raitap.tracking

class raitap.tracking.BaseTracker

Bases: ABC, AdapterMixin

classmethod stop_detached(timeout=5.0)

Terminate this tracker's detached helpers. Returns (killed, skipped).

Subclasses with detached helpers must override. The default implementation only logs an error so that misconfigured trackers (registry entries written without a matching stop_detached implementation) are surfaced instead of silently leaking processes.

classmethod tracker_name()

Identity used by the process registry. Override if multiple classes share a single detached helper.

class raitap.tracking.MLFlowTracker(config)

Bases: BaseTracker

classmethod stop_detached(timeout=5.0)

Kill the local MLflow server/UI tree this user has spawned or reused.

MLflow has no remote shutdown API (no mlflow stop CLI, no HTTP /shutdown), so the helper PIDs are torn down directly. Forked multiprocessing workers re-parent after the root dies on Windows, so we walk the process tree before SIGTERM.