バックフィル改善: --backfill-from オプション追加・カットオフバグ修正・進捗表示改善#137
Merged
Conversation
- --backfill-from <datetime> で任意の開始時刻からの強制バックフィルを実行可能に (例: --backfill-from "2026-05-28" または --backfill-from "2026-05-28 09:00") - バックフィルのカットオフを「現在-24h」から「前回ハートビート-24h」に修正: 停止期間が24hを超えると全チャンネルが除外されていたバグを解消 - レジューム検出時も lastHeartbeatTs をスリープ前の時刻に更新するよう修正 - 進捗表示をバッチ完了ごとに出力 + インターバルを60秒→30秒に短縮 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--backfill-from <datetime>オプション追加: 任意の開始時刻を指定して強制バックフィルを実行可能に。プロセスが長期停止していた際の手動回収に対応使い方
起動すると以下のように表示され、全チャンネルを対象にバックフィルが走る:
各チャンネルの
oldestはmax(指定時刻, DBの最終ts)で計算するため重複挿入は発生しない。Test plan
--backfill-from "YYYY-MM-DD"形式で起動し、指定日以降のメッセージが取り込まれること--backfill-from "YYYY-MM-DD HH:mm"形式でも動作すること--backfill-fromなしの通常起動で既存の自動バックフィル動作が変わらないこと🤖 Generated with Claude Code