Skip to content

Commit

Permalink
Added check before backfilling images. Check forge-tig-config
Browse files Browse the repository at this point in the history
  • Loading branch information
James Wood authored and James Wood committed Jan 16, 2025
1 parent 60fab66 commit 7e65aa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- List can be a list of GranuleURs or granule concept-IDs
- Update db size from t2.micro to t3.micro
- Made arguments *--cumulus-configurations* and *--default-message-config* optional in preview mode
- Added check before backfilling images--make sure it is enabled in forge-tig configuration
- Updated forge-py to 0.4.0
- Updated cumulus-postworkflow-normalizer to 0.4.1
- Updated hitide-backfill-lambdas to 0.4.1
Expand Down
7 changes: 7 additions & 0 deletions podaac/hitide_backfill_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ def verify_inputs(args, granule_options, message_writer, backfiller):
if not footprint_settings:
raise Exception("There is no footprint setting for this collection, please disable footprint for backfilling")

if granule_options['image_processing'] != "off":
if backfiller.forge_tig_configuration is None:
raise Exception("Cannot find forge-tig configuration for this collection")
image_settings = backfiller.forge_tig_configuration.get('imgVariables')
if not image_settings:
raise Exception("There is no image setting for this collection, please disable image for backfilling")

if granule_options['dmrpp_processing'] != "off":
if message_writer is None:
error_msg = "Dmrpp processing requires "
Expand Down

0 comments on commit 7e65aa1

Please sign in to comment.