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

HARMONY-2013: Check if a job is in a terminal state prior to attempting to process the STAC catalog for a work item update. #697

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

chris-durbin
Copy link
Contributor

Jira Issue ID

HARMONY-2013

Description

Fixes a bug we're seeing in UAT right now where a work item that takes more than 30 seconds to process is not getting cleaned up. This changes things to check the job status prior to doing any work for the work item and skips reading the STAC catalog and items if the job is already in a terminal state.

Local Test Steps

I reproduced the problem in my sandbox and then built and pushed the work-updater image. With the new image I verified it skipped reading the catalog and the SQS message was successfully deleted from the queue.

I've also verified with a 110K granule request that performance is not impacted by the extra DB call to get the job status.

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)
  • Harmony in a Box tested? (if changes made to microservices or new dependencies added)

…ng to process the STAC catalog for a work item update.
@chris-durbin chris-durbin merged commit 8726534 into main Feb 12, 2025
5 checks passed
@chris-durbin chris-durbin deleted the harmony-2013 branch February 12, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants