Skip to content

release: v0.3.5 - タイムキーパー・スケジューラ耐障害性の強化 - #130

Merged
rebuildup merged 3 commits into
mainfrom
release-0-3-5
Nov 22, 2026
Merged

rebuildup merged 3 commits into
mainfrom
release-0-3-5

Conversation

@rebuildup

Copy link
Copy Markdown
Collaborator

Summary

2026-11-22 の本番障害 (タイムキーパー無発火) の再発防止ホットフィックスです。

Test plan

Generated with Devin

rebuildup and others added 2 commits November 22, 2026 22:44
A wedged runSession (unbounded Discord REST / storage await) previously
left the daily schedule disarmed forever: the reschedule only ran in
.finally, which never fires for a hung promise, and nothing logged
between the schedule timer and the first session event.

- Log when the schedule timer fires so timer-vs-session hangs are
  distinguishable in logs.
- Bound pre-flight awaits (channel resolution, voice connect, session
  engagement) with timeouts so a zombie gateway fails loudly.
- Add a session watchdog (session budget + margin) that bumps a
  generation counter, destroys the tracked voice connection, persists
  the interrupted session, and re-arms the next day even when
  runSession never settles.
- Skip re-arming the same start slot after a run so a pre-start
  failure cannot hot-loop on a zero delay.
- Log the scheduled-announcements idle transition once instead of every
  60s tick, which was flooding ~1440 lines/day and shrinking log
  retention to ~2.5 days.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fix(timekeeper): セッション・ハングによる無言の永続停止を防止 (#128)
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · 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

Patch release for the timekeeper outage: a wedged session could silently
disarm the daily schedule forever, and idle-log spam shrank retention to
~2.5 days. Bundles the scheduler hardening, watchdog, and log fixes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@rebuildup
rebuildup marked this pull request as ready for review November 22, 2026 13:57
@rebuildup
rebuildup merged commit 6799b41 into main Nov 22, 2026
6 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.

1 participant