logoalt Hacker News

lawnlast Sunday at 4:34 AM1 replyview on HN

Typically you then let the error bubble up in the supervisor tree if restarting multiple times doesn't fix it.

Of course there are still errors that can't be recovered from, in which case the whole program may finally crash.


Replies

dns_sneklast Sunday at 7:34 AM

> in which case the whole program may finally crash.

This may happen if you let it, but it's basically never the desired outcome. If you were handling a user request, it should stop by returning a HTTP 500 to the client, or if you were processing a background job of some sort, it should stop with a watchdog process marking the job as a failure, not with the entire system crashing.

show 1 reply