swh.deposit.api: Add service to clean up temporary archives
The retrieval of archives can temporarily build an archive from multiple ones before sending its content to the client. As a result, when retrieving a content, we leave in a temporary location an archive. This temporary archive is referenced in a table deposit_temporary_archive. This adds a service which is in charge to poll regularly and delete old temporary archives.
Showing
- swh/deposit/api/deposit_read.py 27 additions, 14 deletionsswh/deposit/api/deposit_read.py
- swh/deposit/migrations/0003_temporaryarchive.py 26 additions, 0 deletionsswh/deposit/migrations/0003_temporaryarchive.py
- swh/deposit/models.py 19 additions, 0 deletionsswh/deposit/models.py
- swh/deposit/service/clean_temporary_directory.py 58 additions, 0 deletionsswh/deposit/service/clean_temporary_directory.py
Loading
Please register or sign in to comment