[erlang-questions] simple_one_for_one supervisor, transient restart strategy

Paul Peregud paulperegud@REDACTED
Wed Dec 12 16:20:19 CET 2012

I've searched mailing list for this question and found nothing.

There is this one peculiar behavior when you use simple_one_for_one
with transient strategy. You do supervisor:start_child(Ref, Args), the
child executes and if it dies gracefully everything is fine, child is
removed from supervisor tree. However, if it fails, it is restarted

This combination of type/strategy would be a great tool for
fire-and-forget tasks if it was not for that small issue.

Is it a bug or is it a feature?

Best regards,
Paul Peregud

More information about the erlang-questions mailing list