5 ms·
This is pretty crafty. I do not know supervisor well enough - if one of the services fail, can you engineer supervisor to also crash so that it would bubble up
by fbdab103 4y ago
This is pretty crafty. I do not know supervisor well enough - if one of the services fail, can you engineer supervisor to also crash so that it would bubble up to the container infrastructure? My understanding is that standard supervisor would let the process die and/or restart the service.
- KronisLV 4y agoSupervisor allows you to have event listeners (e.g. for processes quitting/crashing), so you can use those to achieve that and kill supervisor itself. Here's an example of people doing just that: https://gist.github.com/tomazzaman/63265dfab3a9a61781993212fa1057cb https://gist.github.com/tomazzaman/63265dfab3a9a61781993212f...
- fbdab103 4y agoNeato. Do not have an immediate use case for this, but definitely something I will consider for the future.