feat: TimePoll 스케줄러 구현 (집계/독촉/최후통첩/자동확정) (#31)#33
Merged
hayeon7898 merged 1 commit intodevfrom Feb 6, 2026
Merged
Conversation
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.
TimePoll 스케줄러 구현 (집계/독촉/최후통첩/자동확정)
동작 방식
1분 주기로 DB를 폴링하여, 진행 중인 시간 투표의 경과 시간에 따라 메시지를 트리거합니다.
lastReminderStep으로 각 투표의 독촉 진행 단계를 추적하여 중복 발송을 방지합니다.스케줄 기준
메시지 발송 관련 (TODO)
현재 모든 메시지는
log.info로만 출력됩니다. 실제 카카오톡 챗봇 메시지 발송으로 대체해야 합니다.코드 내
// TODO: send chatbot message주석이 있는 위치:sendAggregateMessage()— 집계 현황 메시지sendReminderMessage()— 독촉 메시지 (단계별 템플릿 적용)sendUltimatumMessage()— 최후통첩 메시지 (버튼 포함)processAutoFinalize()— 자동 확정 통보 메시지