[erlang-questions] catch supervisor failure

Eric Merritt <>
Thu Aug 25 21:52:22 CEST 2011


No this is exactly what supervisors are for. I see no need at all to
write your own supervisor.

On Thu, Aug 25, 2011 at 1:56 PM, Max Lapshin <> wrote:
> I need to fetch url once a minute. It is ok for remote server to fail
> to reply with this url several times, so I want to use supervisor
> mechanism for it:
>
> set 60 restarts in 5 seconds as a limit and if supervisor fails, it
> should be stopped for some time. After 10 minutes it should be
> restarted.
>
> Question is: should I use supervisors for this mechanism or I need to
> write my own failure tracker?
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list