[erlang-questions] How to make a supervisor wait before restarting children

Francesco Mazzoli f@REDACTED
Wed Sep 12 12:36:38 CEST 2012


At Wed, 12 Sep 2012 11:58:41 +0200,
Florian Odronitz wrote:
> What I would like to achieve is a (super)supervisor that waits for a couple of
> seconds before restarting workers (or supervisor). The restart strategy does
> not offer such an option.
> Do you have any idea how to do this?

If you feel adventurous, you can try to use our version of supervisor, which
includes that feature:
<https://github.com/rabbitmq/rabbitmq-server/blob/master/src/supervisor2.erl>.

The additional feature are listed at the top.

--
Francesco * Often in error, never in doubt



More information about the erlang-questions mailing list