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

Feature/issue 7 - Remove wait for GITC response #30

Merged
merged 67 commits into from
Jun 17, 2024

Conversation

torimcd
Copy link
Collaborator

@torimcd torimcd commented Jun 5, 2024

Github Issue: closes #7

Description

Waiting for the GITC response currently throttles the number of image sets we can send. Change to remove the wait period and complete successfully when we complete the send. Handle the GITC response outside of the state machine.

Overview of work done

  • remove the wait for task token during the sendToGITC lambda
  • change to using the image name + granule concept id for the CNM identifier
  • save CNM message sent to GITC in audit bucket with granuleUR + submission time as filename
  • move the umm-json lookup to the utils module so it can be reused out of state machine
  • handle the GITC response separately by moving to a regular lambda (not a cumulus process) and save the CNM-R in the same audit location with same filename (+cnm-r.json) to enable easy reconciliation

Overview of verification done

No new unit tests, existing tests pass

Overview of integration done

Deployed to SIT. Workflow succeeds when invoked manually and both CNM & CNM-R messages are saved in the audit bucket under collection_var prefix

PR checklist:

  • Linted
  • Updated unit tests
  • Updated changelog
  • Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

@torimcd torimcd added the enhancement New feature or request label Jun 5, 2024
Copy link
Member

@frankinspace frankinspace left a comment

Choose a reason for hiding this comment

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

This looks great, just a few comments.

@frankinspace frankinspace merged commit b95dbf3 into develop Jun 17, 2024
7 checks passed
@frankinspace frankinspace deleted the feature/issue-7 branch June 17, 2024 17:23
frankinspace added a commit that referenced this pull request Feb 4, 2025
* /version 0.2.0a0

* feature: convertToPNG --> sendToHarmony (#21)

* update state_machine, sendToHarmony

* --changelog Issue-15

* moved to unreleased, changelog

* /version 0.2.0a1

* Update README.md (#22)

* /version 0.2.0a2

* Use -j to remove top-level directory in zip artifact (#25)

* /version 0.2.0a3

* Issue#16: Change apply opera treatment choice and lambda to be specific to HLS (#24)

* update for HLS -- lambda and state machine

* py lint error

* update file name

* /version 0.2.0a4

* /version 0.2.0a5

* Feature/issue 7 - Remove wait for GITC response (#30)

* fix type in readme

* change task token to uuid in send to gitc

* remove wait for task token & gitc response handler from state machine

* change gitc response handler to invoke save cma message

* fix typo

* fix context parameter

* convert uuid to string

* fix json typo

* remove uuid lib to use stdlib uuid

* change identifier to image set name instead of uuid

* remove uuid import

* fix json formatting of cma invoke

* add granule concept ID to identifier

* update image set name with granule conceptid

* remove whitespace

* move get umm json to utils and save gitc outgoing cnm

* remove unused import

* try setting cmr query env based on stage

* remove task token from tests

* fix granule index

* change how image set name defined

* add region to ssm client in utils

* add ssm parameters to gitc lambdas

* change region reference

* update how granule name referenced in send to gitc

* remove unused cmr var

* fix case

* fix cnm parsing

* reformat save cnm to separate step

* update tf vars for save cnm

* fix type in module definition

* fix cnm in cma

* fix collection reference in save cnm

* add debugging log statements

* fix input

* update save cnm input

* debugging

* debugging

* linting

* debugging

* debugging

* linting

* fix state machine

* update state machine

* reorg state machine

* missing comma

* move save cnm into map

* fix state machine transitions

* fix sm

* fix boolean

* debugging cnm input

* fix input

* change input

* debug input

* add cnm as config parameter

* lint

* fix cnm payload

* remove debugging statements

* add prefix to cnm path and fix gitc response

* increase handle gitc response timeout

* update changelog

* add original shortname as cnm prefix

* revert shortname and change collection ref to save cnm & cnm-r in same location

* remove save cma lambda no longer used

* remove EDL env params from sendtogitc

* change parsing of granule concept id

* /version 0.2.0a6

* Update README.md

* /version 0.2.0a7

* Support datetimes without microseconds (#37)

* Support datetimes without microseconds

* changelog

* Update generate_image_metadata.py (#39)

add docstring

* /version 0.2.0a8

* /version 0.2.0a9

* Issues/23: Enable Harmony write output to user bucket (#46)

* add s3 destination to harmony job

* syntax

* job success

* harmony block update

* --variable

* temp test in uat

* manual to uat

* test s1-v1

* lint

* deploy --sit

* Update to place harmony results in our bucket

* Update to place harmony results in our bucket

* Update to place harmony results in our bucket

* Update to place harmony results in our bucket

* Update to place harmony results in our bucket

* Update to place harmony results in our bucket

---------

Co-authored-by: Josh <joshhaile7@gmail.com>

* /version 0.2.0a10

* fix deploy failure

* /version 0.2.0a11

* Add new message attribute response_topic_arn to all outgoing messages to GIBS (#47)

* /version 0.2.0a12

* prep for 0.2.0

* /version 0.2.0a13

* Fix build error

* /version 0.2.0a14

* /release 0.2.0

* Update graph

* /version 0.2.0rc1

* Turn prevent_destroy back on for gibs response topic

* /version 0.2.0rc2

* Improve error message when missing config

* /version 0.2.0rc3

* Improve error message when missing config

* /version 0.2.0rc4

* UAT is in east-1 region

* /version 0.2.0rc5

* fix gibs queue name

* /version 0.2.0rc6

* calculate md5sum for files from harmony

* calculate md5sum for files from harmony

* /version 0.2.0rc7

* bump chunk size to 100 MB

* /version 0.2.0rc8

* Update test message for UAT, add checksum to generated tif, add logging, fix type error

* Lint

* Lint

* /version 0.2.0rc9

* Change named variables for audit path from pobit to bignbit

* /version 0.2.0rc10

* Update docs

---------

Co-authored-by: frankinspace <frankinspace@users.noreply.github.com>
Co-authored-by: Josh Haile <35245966+voxparcxls@users.noreply.github.com>
Co-authored-by: Victoria McDonald <49625194+torimcd@users.noreply.github.com>
Co-authored-by: Jake Herrmann <jtherrmann1@gmail.com>
Co-authored-by: James Wood <James.F.Wood@jpl.nasa.gov>
Co-authored-by: jamesfwood <jamesfwood@users.noreply.github.com>
Co-authored-by: Josh <joshhaile7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the wait for GITC response
2 participants