mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-07 04:53:47 +08:00
12 lines
555 B
Python
12 lines
555 B
Python
"""Driving health requirements for manager-owned services."""
|
|
|
|
# Projection and local phone access are optional even when requested.
|
|
# Their lifecycles remain visible in managerState and their own status.
|
|
# A dead Jetlink owner sends the drive back to the small model.
|
|
ANCILLARY_PROCESSES = frozenset({'starportd', 'galaxy_hotspot', 'jetlinkd'})
|
|
|
|
|
|
def driving_process_failures(processes) -> set[str]:
|
|
return {process.name for process in processes
|
|
if process.shouldBeRunning and not process.running and process.name not in ANCILLARY_PROCESSES}
|