Currently when a worker dies unexpectedly, it will be restarted after restartDelayMs. However, if there is something that cannot be recovered from, it will never give up retrying to restart the failed worker.
Add support for restartsPerThreshold and restartThreshold, which keeps track on a worker by worker basis (since there can be any number of unique worker pools) the number of restarts within a period of time to determine if the problem is unrecoverable.
Currently when a worker dies unexpectedly, it will be restarted after restartDelayMs. However, if there is something that cannot be recovered from, it will never give up retrying to restart the failed worker.
Add support for restartsPerThreshold and restartThreshold, which keeps track on a worker by worker basis (since there can be any number of unique worker pools) the number of restarts within a period of time to determine if the problem is unrecoverable.