Closed victor-shepardson closed 5 months ago
thanks @victor-shepardson
In https://github.com/elgiano/nn.ar/commit/d6ffd70bb78b2bc79ac2ebafd519cadabc6ca53e I removed model auto-reload on ServerBoot and added a model.reload
function. Actually adding server hooks had high risk of polluting the environment, with hooks accumulating on every reboot. It's still fairly easy to reload all models and I'll leave it to the user:
NN.models.do(_.reload)
It looks like NN.ar registers doOnServerBoot actions to re-load any models when you reboot the server -- but I think
infoFile
winds up being nil when the server boots again:possibly this logic: https://github.com/elgiano/nn.ar/blob/eb36a3a345393c810f97ffc62e7e1fecdfbf4eed/plugins/NNModel/sc/NNModel.sc#L41-L44 should be repeated in
NNModel.loadMsg
or moved intoNN.loadMsg
?