Skip to content

Sharesight warmer sleeps until the next cache is due - #22

Merged
robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q
Oct 9, 2026
Merged

robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q

Conversation

@robdevops

Copy link
Copy Markdown
Owner

Summary

  • The Sharesight cache warmer (keep_warm) woke every 30 seconds and read the portfolios cache each time, logging a "cache hit" line twice a minute. It now sleeps until the soonest cache reaches 90% of its TTL (next_due), and still waits 5 minutes after a failure.
  • keep_warm no longer takes a poll argument.
  • Stops logging "Found portfolio" lines.
  • Also contains a /usage-as-help-alias change and its revert, which cancel out (net no change).

Test plan

  • .venv/bin/python -m unittest discover -s tests (112 tests pass)
  • Deploy and confirm the "cache hit: finbot_sharesight_portfolios.json" line appears once per refresh cycle, not every 30 seconds

🤖 Generated with Claude Code

https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX


Generated by Claude Code

claude added 4 commits October 8, 2026 22:38
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
This reverts commit 8cd5449.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
…ng every 30s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
…l due)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
@robdevops
robdevops merged commit 6af0971 into main Oct 9, 2026
3 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