Tell a supervisor to stop when all children are gone
Frank Muller
frank.muller.erl@REDACTED
Wed Mar 23 09:58:45 CET 2022
Exactly what I was looking for. Thank you.
> Hi Frank,
>
> Would auto_shutdown set to all_significant help?
>
>
> https://www.erlang.org/doc/design_principles/sup_princ.html#automatic-shutdown
>
> Br,
> Zsolt
>
> Sent from my iPad
>
> On 2022. Mar 23., at 8:50, Frank Muller <frank.muller.erl@REDACTED>
> wrote:
>
> Hi guys,
>
>
> How should I configure my supervisor to automatically stop it when its
> children are stopped?
>
> I’m using rest_for_one strategy.
>
> Thanks.
> /Frank
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20220323/dd716daf/attachment.htm>
More information about the erlang-questions
mailing list