Repository navigation
Upload stac-item.json last and use it as the product marker - #226
Open
chris-thomas-ga wants to merge 2 commits into
Open
chris-thomas-ga wants to merge 2 commits into
chris-thomas-ga wants to merge 2 commits into
Conversation
Burst products were uploaded in os.walk order and "exists" meant "any .h5 in the prefix", so a job killed mid-upload could leave a partial product that every later run skipped. Upload the .h5 and then the stac-item.json last, and make the existence checks (before processing and before upload) look for the stac-item.json, so a partial upload is re-made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Burst files are uploaded in whatever order
os.walkgives us, and a product counts as existing if any.h5is in its folder. If a job dies part way through an upload (OOM, node reclaim, an S3 error) after the.h5has landed, every later run skips that burst and it stays incomplete for good. The STAC item can also land before the files it points at.This uploads
_metadata.h5second last and_stac-item.jsonlast. Both existence checks (before processing and before upload) now look for the STAC item instead of the.h5, so a folder left with only an.h5from an old partial upload gets reprocessed.Testing
New offline tests in
tests/sar_pipeline/test_s3_upload_commit_marker.pycovering upload order, the existence check and a legacy partial folder. I haven't run the live isce3_rtc tests.Type of change