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

IA to S3 migrator script #8

Merged
merged 8 commits into from
Oct 1, 2024
Merged

IA to S3 migrator script #8

merged 8 commits into from
Oct 1, 2024

Conversation

bkiahstroud
Copy link
Contributor

Ref:

Add a script that allows downloading, extracting, and uploading files to S3 on the local machine. It then triggers the next preprocess steps (OCR and thumbnail), which still happen in Lambdas.
This step usually happens in a Lamba, but if the Zip file is large enough, it can timeout. This script is intended to be run on the production server.

Steps to use:

  1. Add list of IAIDs that need to be preprocessed to tmp/iaids.txt
  2. Run bin/migrate_iaids
  3. Tail log/ia_to_s3_migrator.log to watch the progress
  4. Go look in the S3 bucket to ensure the files show up as expected

On the prod server, this file path automatically gets cleaned up by a
crontab job
If the files are large enough, they can exceed the file size cap of the
Lambda, causing the deploy to fail. Logs are not necessary for the
Lambda to run
Copy link
Contributor

@aprilrieger aprilrieger left a comment

Choose a reason for hiding this comment

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

I approve of changes but had a small-ish unblocking question

@bkiahstroud bkiahstroud merged commit 143460f into main Oct 1, 2024
1 of 2 checks passed
@bkiahstroud bkiahstroud deleted the ia-to-s3-migrator-script branch October 1, 2024 18:51
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.

2 participants