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

[Bug]: DAAC archive logic not pulling the latest cnm.json #447

Open
ngachung opened this issue Oct 14, 2024 · 0 comments
Open

[Bug]: DAAC archive logic not pulling the latest cnm.json #447

ngachung opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ngachung
Copy link
Collaborator

Environment: DEV and TEST with UDS v8.0.0

When a granule gets cataloged multiple times, there are more than one .cnm.json written to S3. The DAAC archiver pulls the first one without any sorting.

https://github.com/unity-sds/unity-data-services/blob/develop/cumulus_lambda_functions/daac_archiver/daac_archiver_logic.py#L44-L46

Need to sort. so it pulls the most recent cnm.json. Not a perfect solution, but works better than always pulling first from list without sorting.

@ngachung ngachung added the bug Something isn't working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant