Skip to content

Fix clean up staging directory after DuraCloud AIP upload#809

Open
camlyall wants to merge 1 commit intoartefactual:qa/0.xfrom
camlyall:dev/duracloud-tmp-cleanup-fix
Open

Fix clean up staging directory after DuraCloud AIP upload#809
camlyall wants to merge 1 commit intoartefactual:qa/0.xfrom
camlyall:dev/duracloud-tmp-cleanup-fix

Conversation

@camlyall
Copy link
Contributor

Fixes an issue where temporary directories were not being deleted after DuraCloud uploads, causing disk space to be consumed by accumulated staging files.

The DuraCloud storage model was missing the post_move_from_storage_service hook that other storage backends implement. This hook is called after successful uploads to clean up staging directories.

Changes

  • Added post_move_from_storage_service() method to the Duracloud class
  • Method explicitly deletes staging directories/files after successful upload

The issue can be found here: archivematica/Issues#1768

@camlyall camlyall changed the title Fix: Add post_move_from_storage_service hook to DuraCloud to clean up staging directories Fix clean up staging directory after DuraCloud AIP upload Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant