librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 204 forks source link

Split up Maven cleanup one-off into two tasks #3236

Closed kjmahalingam closed 8 months ago

kjmahalingam commented 8 months ago

In the original rake task, the project.manual_sync was an asynchronous process, meaning that it could be potentially unsafe to delete a project if it had no versions without the manual_sync finishing, since that could potentially create new versions again. This splits the work into two rake tasks; one to delete the versions, then a second to delete Maven projects without versions after the async workers are finished.