Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Force data reading from disk without restarting Annif #416

Open
juhahu opened this issue May 26, 2020 · 1 comment
Open
Milestone

Comments

@juhahu
Copy link

juhahu commented May 26, 2020

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.

@osma osma added this to the Long term milestone Jul 22, 2020
@osma
Copy link
Member

osma commented Jul 22, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants