Skip to content

feat: add missing timestamp detection and fallback ingest logic - #382

Merged
suvanbanerjee merged 4 commits into
mainfrom
feat/sat-ts-check
Sep 8, 2026
Merged

feat: add missing timestamp detection and fallback ingest logic#382
suvanbanerjee merged 4 commits into
mainfrom
feat/sat-ts-check

Conversation

@suvanbanerjee

Copy link
Copy Markdown
Member

Pull Request

Description

add check for missing timestamp and call alt sat if there are

Fixes https://github.com/openclimatefix/client-private/issues/616

How Has This Been Tested?

  • Locally

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@suvanbanerjee
suvanbanerjee requested a review from braddf September 8, 2026 07:41

@braddf braddf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple of comments but otherwise looks good!

Comment thread src/quartz_api/internal/service/satellite/_ingest.py Outdated
# re-check after the fallback run
keys = s3_client.list_keys(s3_bucket, prefix)

for missing_ts in _find_missing_timestamps(keys, BACKFILL_HOURS):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Either this or probably multiple places might want a try catch in case of errors in the middle

@suvanbanerjee
suvanbanerjee merged commit f7402c0 into main Sep 8, 2026
2 of 3 checks passed
@suvanbanerjee
suvanbanerjee deleted the feat/sat-ts-check branch September 8, 2026 10:23
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.

2 participants