This code snippet is being used to manage cluster crashes within a node application
cluster.on('exit', function (worker, code, signal) {
console.log("error in cluster",worker);
console.log("cluster code",code);
console.log("cluster signal",signal);
const newFork = cluster.fork();
});
Although I attempted to determine the cause of the worker failure using the data from the worker, code, and signal parameters, it seems that they did not contain any specific information about the error. Is there a way to identify the reason for the crash?