Feature request: Force data reading from disk without restarting Annif
Currently Annif reads data from disk on startup only. For some cases it would be convenient to be able to read new project data from disk without restarting the whole Annif process. That would be useful in production use case when there can be external mechanism to update models and project data on background.
Thank you for the suggestion. It shouldn't be too hard to implement, but I wonder how this would be triggered. It should happen through the REST API, I think, because that's the way to interact with a running process. But the new model wouldn't actually be passed through the API (most likely), as it would be read from disk. Maybe each project could have a parameterless POST method called reload or something along those lines? What if reloading the model fails for some reason - would the old one still be used in that case?
Ideas and/or examples of similar functionality in other software are very welcome!