I have a phoenix application which has a Dynamic supervisor in its supervision tree. When I add any trivial GenServer to the DynamicSupervisor, then call DynamicSupervisor.terminate_child on that trivial GenServer, it shuts down the entire phoenix application.
I made a small repo to reproduce the issue: https://github.com/ericdude4/dynamic_supervisor_demo
The README includes some instructions on how to reproduce the issue. Its a totally bare phoenix app except I made a change in
application.ex and added the trivial
My question is, how can I terminate that child without crashing the entire application?