lablink_client_service.monitoring.samplers.processes¶
lablink_client_service.monitoring.samplers.processes
¶
Process sampler.
Walks /proc/*/cmdline and returns the set of allowlisted process names
currently present. We read cmdline (not comm) because SLEAP's GUI ships
entry-point shim scripts: their /proc/
Three SLEAP invocation shapes are recognised, normalised to the canonical names in the allowlist:
- Direct entry-point script —
sleap-label,sleap-train,sleap-track. Matched on argv[0] basename. Covers the GUI binary itself (sleap-label) and any hand-run CLI. sleap <subcommand>— e.g.sleap track …. The SLEAP GUI uses this shape for inference (sleap/gui/learning/runners.py:541).<python> -m sleap.cli <subcommand>— the SLEAP GUI uses this shape for training, deliberately (PyTorch Lightning DDP needs main.spec set, which entry-point scripts don't provide; sleap/gui/learning/runners.py:1311). argv[0] is the python interpreter.