feat: add storage tier change events script#118
Open
lhoupert wants to merge 2 commits into
Open
Conversation
3 tasks
Collaborator
Author
emmanuelmathot
approved these changes
Apr 2, 2026
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.

Summary
branched from on #103
Adds
submit_storage_tier_workflows.pyoperator tool that queries STAC in 24h windows over a date range and submits onebatch-change-storage-tierwebhook payload per window to trigger theeopf-storage-tier-batch-jobWorkflowTemplate deployed in https://github.com/EOPF-Explorer/platform-deploy/pull/130 via Argo EventsAdds unit tests (covering time-window generation, STAC querying, dry-run, error handling, and payload structure)
Updates
operator-tools/README.mdwith full usage docs and a tool-selection reference tableWhy
Changing S3 storage classes for thousands of items over a multi-month date range is too slow when done sequentially on a local machine. The new script fans work out to Argo: one workflow per 24h window, with intra-window parallelism handled by the
eopf-storage-tier-batch-jobtemplate. Empty windows are skipped automatically.Test plan
uv run pytest tests/unit/test_submit_storage_tier_workflows.pypassesuv run pytest tests/unit/test_change_storage_tier_commands.pypassespython operator-tools/submit_storage_tier_workflows.py --start-date 2024-01-01 --end-date 2024-01-03 --collection sentinel-2-l2a-staging --dry-runaction: batch-change-storage-tierwith item IDs per window