Files
hms-mediaengine/apps/launcher/hms_launcher/__init__.py
T
HMS MediaEngine Agent 80dc10de22 Phase 1: Supervisor/Launcher mit Prozessüberwachung (§6.1A, §26)
- Supervisor: echte Kindprozesse, portable Umgebung, freie Portwahl
- Kontrolliertes Beenden: terminate -> wait -> kill mit Recovery-Markierung
- Restart-Policy mit Crashloop-Erkennung (Zeitfenster-Schwelle)
- Recovery-Marker: forced-kill wird persistent dokumentiert (§26.4)
- 10 Tests mit echten Prozessen (keine Mocks): Start/Stop, Crash-Restart,
  Crashloop, SIGTERM-resistenter Prozess, Environment-Vererbung
2026-09-11 00:54:45 +02:00

16 lines
499 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""hms_launcher Supervisor/Launcher (PLAN.md §6.1A, §9).
Phase-0/1-Umfang: portable Pfadauflösung, Portwahl, GStreamer-Environment,
Prozessüberwachung mit Restart-Policy und Crashloop-Erkennung,
kontrolliertes Beenden mit Recovery-Markierung.
"""
from hms_launcher.paths import AppPaths, resolve_app_root
from hms_launcher.supervisor import (
ProcessSpec,
Supervisor,
find_free_port,
)
__all__ = ["AppPaths", "resolve_app_root", "ProcessSpec", "Supervisor", "find_free_port"]