Skip to content

fix(bot): persist bump notice across rolling updates - #331

Merged
ro80t merged 1 commit into
mainfrom
fix/bump-notice-redis-persist
Oct 8, 2026
Merged

ro80t merged 1 commit into
mainfrom
fix/bump-notice-redis-persist

Conversation

@ro80t

@ro80t ro80t commented Oct 8, 2026

Copy link
Copy Markdown
Member

Summary

  • The 2-hour bump-availability reminder was scheduled with a bare setTimeout inside BumpCommand, so a rolling update's pod restart silently dropped any pending notice.
  • Added Guild.saveBumpNotice/clearBumpNotice/getAllBumpNotices (app-core) to persist the notice job (channel, content, role, commandId, fire time) to Redis, TTL'd to match.
  • Added presentation-bot/src/utils/bump/notice.ts with scheduleBumpNotice/restoreBumpNotices, mirroring the existing TTS voice-session restore pattern — client.ts's clientReady handler now re-arms every pending notice on boot (firing immediately if already past due).
  • BumpCommand now persists the job before arming the timer instead of only holding it in memory.

Test plan

  • bun run typecheck -- --filter=app-core --filter=presentation-bot
  • bun run lint -- --filter=app-core --filter=presentation-bot
  • bun run test -- --filter=app-core --filter=presentation-bot

🤖 Generated with Claude Code

The 2-hour bump-availability reminder was scheduled with a bare
setTimeout in BumpCommand, so a rolling update's pod restart silently
dropped any pending notice. Persist the job (channel, content, role,
fireAt) to Redis alongside arming the timer, and re-arm every pending
job from Redis on clientReady, same pattern as Tts's voice session
restore.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 074578ce-2f4c-457a-9681-a87e36ebf5c3
📥 Commits

Reviewing files that changed from the base of the PR and between 26df345 and 3435731.

📒 Files selected for processing (5)
  • src/application/core/package.json
  • src/application/core/src/Guild.ts
  • src/presentation/bot/src/EventHandler/InteractionCreateHandler/ChatInputCommand/BumpCommand.ts
  • src/presentation/bot/src/client.ts
  • src/presentation/bot/src/utils/bump/notice.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

github-actions Bot pushed a commit that referenced this pull request Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Add Carrot credits or activate Agent usage billing to use Autopilot

@ro80t
ro80t merged commit 2d4173d into main Oct 8, 2026
19 checks passed
@ro80t
ro80t deleted the fix/bump-notice-redis-persist branch October 8, 2026 18:59
github-actions Bot pushed a commit that referenced this pull request Oct 8, 2026
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.

1 participant