It's super unlikely a model cache file becomes corrupt, but it can happen. Right now the horde worker will go into a death spiral and be forced into maintenance mode. This PR adds better error handling so we can more elegantly deal with that problem.
Automatically removes corrupt model cache files
Raises a sensible exception that can be dealt with in the horde worker by unloading the model to force it to re-cache
Fixes unload_model() so it unloads models in the super() class used by the horde worker.
It's super unlikely a model cache file becomes corrupt, but it can happen. Right now the horde worker will go into a death spiral and be forced into maintenance mode. This PR adds better error handling so we can more elegantly deal with that problem.