remove green temp processes (#2286)

old-commit-hash: 87942eea1c
commatwo_master
Adeeb Shihadeh 5 years ago committed by GitHub
parent aff01412d3
commit 4d329cddfa
  1. 13
      selfdrive/manager.py

@ -208,9 +208,6 @@ interrupt_processes: List[str] = []
# processes to end with SIGKILL instead of SIGTERM # processes to end with SIGKILL instead of SIGTERM
kill_processes = ['sensord'] kill_processes = ['sensord']
# processes to end if thermal conditions exceed Green parameters
green_temp_processes = ['uploader']
persistent_processes = [ persistent_processes = [
'thermald', 'thermald',
'logmessaged', 'logmessaged',
@ -481,16 +478,6 @@ def manager_thread():
while 1: while 1:
msg = messaging.recv_sock(thermal_sock, wait=True) msg = messaging.recv_sock(thermal_sock, wait=True)
# heavyweight batch processes are gated on favorable thermal conditions
if msg.thermal.thermalStatus >= ThermalStatus.yellow:
for p in green_temp_processes:
if p in persistent_processes:
kill_managed_process(p)
else:
for p in green_temp_processes:
if p in persistent_processes:
start_managed_process(p)
if msg.thermal.freeSpace < 0.05: if msg.thermal.freeSpace < 0.05:
logger_dead = True logger_dead = True

Loading…
Cancel
Save