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

actually start deleting old s3 objects #1330

Merged
merged 2 commits into from
Sep 26, 2024
Merged

actually start deleting old s3 objects #1330

merged 2 commits into from
Sep 26, 2024

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Sep 11, 2024

Description

Previously we added this ability in "log only" mode. On staging we can now see there are lots of old s3 objects in need of deletion and the logging seems to work properly.

Modify the code so it actually starts deleting old objects and enhance the test so it proves only old objects, and not new objects, are deleted.

Security Considerations

N/A

@terrazoon terrazoon self-assigned this Sep 11, 2024
@terrazoon terrazoon linked an issue Sep 11, 2024 that may be closed by this pull request
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thank you, @terrazoon, and especially for the log statements of successful or failed activity and the notes in the test to prove out the timing of the removal!

app/aws/s3.py Show resolved Hide resolved
Copy link
Member

@A-Shumway42 A-Shumway42 left a comment

Choose a reason for hiding this comment

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

Just had one question for insight but otherwise LGTM!

app/config.py Show resolved Hide resolved
@terrazoon terrazoon removed the request for review from xlorepdarkhelm September 26, 2024 15:12
@terrazoon terrazoon merged commit d27d877 into main Sep 26, 2024
7 checks passed
@terrazoon terrazoon deleted the fix_test_coverage branch September 26, 2024 15:13
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.

delete bucket contents older than 8 days
3 participants