Skip to content

SO2 collector: share the storage token with read processes; don't cache failed months - #40

Merged
ASCoding11 merged 1 commit into
mainfrom
claude/keen-tesla-shs956
Nov 20, 2026
Merged

ASCoding11 merged 1 commit into
mainfrom
claude/keen-tesla-shs956

Conversation

@ASCoding11

Copy link
Copy Markdown
Owner

Follow-up to #39. Each forked read process asked Planetary Computer's signing service for its own storage token, and the service answered 429 (Too Many Requests). 2,148 of the 2,380 files for May-Dec 2021 failed, and those thin months were cached as if complete.

  • The parent fetches (and caches) the storage token before forking, so the children inherit it.
  • Token requests back off on 429, honouring Retry-After.
  • A month with more than 10% failed files is used for this run but not cached, so the next run fetches it again.

Tests: the token hook and the failure count in run_isolated; a failed month is not cached. The full suite passes.


Generated by Claude Code

… cache failed months

The forked readers each asked the signing service for a token and were rate
limited (429): most of May-Dec 2021 failed and was cached anyway. The parent
now fetches the token before forking, token requests back off on 429, and a
month with more than 10% failed files is not cached, so the next run refetches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
@ASCoding11
ASCoding11 merged commit 5225e3b into main Nov 20, 2026
2 checks passed
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