As it currently stands its just updateServers() that just goes into a for-loop and does its things. If one steps breaks, everything can break. So my proposal is to split up parts into different functions. One for fetching data, one for updating stats, one for updating the servers cached in redis, calculate maxims etc etc. And if one of those fails, the function will keep running.
As it currently stands its just
updateServers()
that just goes into a for-loop and does its things. If one steps breaks, everything can break. So my proposal is to split up parts into different functions. One for fetching data, one for updating stats, one for updating the servers cached in redis, calculate maxims etc etc. And if one of those fails, the function will keep running.