-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mechanism to rerun lambda functions for images where thumbnail creation failed #161
Comments
See code here - https://github.com/avniproject/avni-media/blob/main/scripts/S3BulkThumbnailCreator/index.mjs It looks like S3 apis (python and ) provide filtering by date, could not find anything in the documentation. |
I think in s3 List object we can filter by date: https://stackoverflow.com/questions/45429556/how-list-amazon-s3-bucket-contents-by-modified-date |
@vinayvenu there are 1636 encounters of daily encounter types alone synced to the server in the above mentioned time range in the orgs - RWB 2023 and RWB NGOs 2023 alone. I didnt check GDGSGOM which also belongs to the same org group since looks like we need to do this card anyways. |
List of affected files was fetched using: |
|
Adding generated file as well as filtered and formatted file here itself (data-fixes looks out of place for this). Run log wasn't saved to file but it was basically the file names and response status 202. I validated using sample checks. Noticed a few errors in the lambda metrics and on checking cloudwatch logs, they were due to invalid source images. |
Need to come up with some solution to create thumbnails for the images uploaded between Aug 21 and 29th September since for these lambda function executions has failed.
Analysis details:
References:
https://stackoverflow.com/questions/40003827/running-s3-put-triggered-lambda-function-on-existing-s3-objects
https://stackoverflow.com/questions/51176450/run-aws-lambda-function-on-existing-s3-images
The text was updated successfully, but these errors were encountered: