Helsinki-NLP / OPUS-API

API for searching corpora from OPUS
1 stars 0 forks source link

recover from errors when updating the database #1

Open jorgtied opened 1 year ago

jorgtied commented 1 year ago

The system should recover from errors when regularly updating the database. At least the previous DB should be used when updates fail and some notification would be good to send to some admin.

jorgtied commented 1 year ago

I now added a makefile with a recipe for updating the database. This breaks if something goes wrong and will not overwrite the existing database in that case. A notification about the failure would, of course, be nice as well.