lib/master.js
function lifecycleTimeoutHandler() {
  if (shutdownCalled) {
    return;
  }

  verbose('workers have reached the end of their life');

  master.restart(function () {
    if (!shutdownCalled) {
      lifecycleTimer = setTimeout(lifecycleTimeoutHandler.bind(master), config.timeouts.maxAge);
    }
  });
}
function lifecycleTimeoutHandler() {
  if (shutdownCalled) {
    return;
  }

  verbose('workers have reached the end of their life');

  master.restart(function () {
    if (!shutdownCalled) {
      lifecycleTimer = setTimeout(lifecycleTimeoutHandler.bind(master), config.timeouts.maxAge);
    }
  });
}
function lifecycleTimeoutHandler ( ) { if ( shutdownCalled ) { return ; } verbose ( 'workers have reached the end of their life' ) ; master . restart ( function ( ) { if ( ! shutdownCalled ) { lifecycleTimer = setTimeout ( lifecycleTimeoutHandler . bind ( master ) , config . timeouts . maxAge ) ; } } ) ; }
Called when workers have reached the end of their lifespan

@private
Called when workers have reached the end of their lifespan