add shouldBeRunning field to managerState (#22246)

pull/22252/head
Adeeb Shihadeh 2021-09-15 19:51:55 -07:00 committed by GitHub
parent 174aa908ba
commit 2f57f1729d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

2
cereal

@ -1 +1 @@
Subproject commit 5c3520d53fd86cb07ff5151e8951d9db3e2d750e
Subproject commit 5b6f6772f92477f851e88113c5e75fa99e66b779

View File

@ -160,6 +160,7 @@ class ManagerProcess(ABC):
state.name = self.name
if self.proc:
state.running = self.proc.is_alive()
state.shouldBeRunning = self.proc is not None and not self.shutting_down
state.pid = self.proc.pid or 0
state.exitCode = self.proc.exitcode or 0
return state