Skip to content

feat: warm configured price caches on startup#66

Open
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-cache-warming-25
Open

feat: warm configured price caches on startup#66
jamilahmadzai wants to merge 1 commit into
SmartDropLabs:mainfrom
jamilahmadzai:codex/smartdrop-cache-warming-25

Conversation

@jamilahmadzai

Copy link
Copy Markdown

Closes #25

Bounty: GrantFox escrow for issue #25

Summary

  • Parse WATCHED_ASSETS into validated { code, issuer } entries with duplicate removal.
  • Warm all configured assets through the existing price oracle before the HTTP server binds.
  • Continue startup after a 30-second warm timeout and log success/failure counts.
  • Document WATCHED_ASSETS in .env.example.

Validation

  • npm ci --ignore-scripts --no-audit
  • npm test -- test/cacheWarm.test.js test/config.test.js --runInBand (8 passing)
  • npm test -- --runInBand (189 passing)
  • git diff --check

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.

Implement cache warming on startup to prevent cold-start latency

1 participant