Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

divide large shoots by maximum total size #33

Merged
merged 28 commits into from
Oct 17, 2024
Merged

divide large shoots by maximum total size #33

merged 28 commits into from
Oct 17, 2024

Conversation

paul-butcher
Copy link
Contributor

What does this change?

Fixes #31

Previously, because most shoots were relatively small, I wrote all this to download, zip, then upload, in discrete steps. I have now encountered some shoots that were too large for Lambda to cope with in that way.

In order to handle this, I now download only as many files as can fit (alongside the zip they become), then upload that partial shoot, before cleaning up and downloading the next batch.

This could have been optimised further by doing it all in memory, but I have chosen to work with the filesystem partly because it makes it easier to diagnose problems when run locally.

How to test

Push the remaining shoots onto the restore queue. They should all now transfer successfully.

How can we measure success?

This should mark the end of having to make code changes to accommodate the vagaries of this process.

Have we considered potential risks?

It's possible that the size I have set is too big for Archivematica to handle. If that's the case, then I can revisit the numbers.

Copy link
Contributor

@agnesgaroux agnesgaroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the comment to remove!

Base automatically changed from failure-list-2 to main October 17, 2024 09:14
@paul-butcher paul-butcher merged commit 6df4c84 into main Oct 17, 2024
4 checks passed
@paul-butcher paul-butcher deleted the big-shoots branch October 17, 2024 09:23
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.

Improve handling of very large shoots
2 participants