remove green temp processes (#2286)

This commit is contained in:
Adeeb Shihadeh
2020-10-07 03:11:54 -07:00
committed by GitHub
parent bd4a1f291d
commit 87942eea1c
-13
View File
@@ -208,9 +208,6 @@ interrupt_processes: List[str] = []
# processes to end with SIGKILL instead of SIGTERM
kill_processes = ['sensord']
# processes to end if thermal conditions exceed Green parameters
green_temp_processes = ['uploader']
persistent_processes = [
'thermald',
'logmessaged',
@@ -481,16 +478,6 @@ def manager_thread():
while 1:
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:
logger_dead = True