Skip to content

fix: skip cleanup if we can't find anything to delete #313

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

ceholden
Copy link
Collaborator

Description

In https://github.com/NASA-IMPACT/hls_development/issues/342 we noticed that there is a race condition in our HLS pipeline where for "twin granule" conditions the "2 granule" case can finish before the "1 granule" case. When this happens the "2 granule" job has already deleted the granule inputs, causing the "1 granule" case to find 0 objects on S3. This condition isn't handled by the "cleanup" Lambda, causing it to fail. This PR adds handling for this condition

Copy link
Collaborator

@chuckwondo chuckwondo left a comment

Choose a reason for hiding this comment

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

Nice use of pytest's capsys fixture!

@ceholden ceholden merged commit 37fe9df into dev Apr 14, 2025
1 check passed
@ceholden ceholden deleted the fix/skip-cleanup-if-missing branch April 14, 2025 18:19
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