Supervisor max_restarts doesn't appear to be respected

Hi all,

I’m having a problem getting my supervisor to respect the max_restarts and max_seconds options. I’ve got the following settings:
max_restarts: 3,
max_seconds: 120

But my purposely crashing transient genserver keeps getting restarted over and over. I’m not sure exactly what’s going on with the restart mechanism and why I can’t get it to stop restarting after three crashed.

Nvm, posted too soon. It’s because the Supervisor was being restarted infinitely as well.

4 Likes