Processes construct their own supervision - #522
Conversation
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
663cb89 to
2a5e575
Compare
2a5e575 to
5c1f0cc
Compare
5c1f0cc to
8c2033c
Compare
8c2033c to
9e9809f
Compare
danth
left a comment
There was a problem hiding this comment.
This looks like a good cleanup, just a few small tweaks 😄
9e9809f to
fdec3cd
Compare
f0e336a to
84780eb
Compare
…into feature/process-makes-supervision
32d14e6 to
1a33227
Compare
There was a problem hiding this comment.
This interface does not describe an API which publishes anything. I need to think about what it is actually defining. Something like IProcessState? If you have better ideas, please go ahead.
There was a problem hiding this comment.
Renamed to "supervision state reporter", what do you think? 2290950
There was a problem hiding this comment.
A supervision state reporter means to me something where I can report that supervision checkpoints have been reached, but I understand your intention. How about supervision process state reporter?
| LM_LOG_DEBUG() << "Setting up alive supervision for" << identifier_; | ||
|
|
||
| config_.deployment_config.environmental_variables.add( | ||
| "LCM_ALIVE_INTERFACE_PATH", aliveInterfacePath(identifier_)); |
There was a problem hiding this comment.
Could we remove the env var? Should maybe the constructSupervision just take it as a param?
There was a problem hiding this comment.
I don't think I can, the library still need to read the supervision path from somewhere. In #571 the factory will return the path to use though
…into feature/process-makes-supervision
…into feature/process-makes-supervision
Continuation of the refactoring started in #477. This PR moves alive supervision construction to the ProcessInfoNode constructor.
In addition, it:
SupervisionHandle, this is no longer neededgetTimeForReportsupervision_control_clientTODO
PhmDaemon::constructmethod. This really just needs to reserve the size of a vector and LM should calculate what size to reserve