Make sure SH db file is not removed when SH db refresh procedure fails
Currently the working SH db file location:
/cache/external-resources/software-heritage/origins.db
which is used by the IIS is also dropped before new DB version is generated. When the process fails then the file is not rebuild and the IIS fails.
We should invert the order of actions in a way a new db version should be generated in a versioned directory (including date/time) and update the /cache/external-resources/software-heritage/origins.db file once the new version is successfully generated. Whenever the db building process fails the file used by IIS will not be affected.
Hi, can you please remove me from the repo.
Hi @S6savahd, it seems you are not assgined to this particular project, you are among the OpenAIRE-core team members and the whole group is assgined. I've removed you from the OpenAIRE-core github team. Let me know if this is OK.