---
task_id: task-2046
type: plan
scope: task
created: 2026-04-21
updated: 2026-04-21
status: completed
---

# 계획서: task-2046

**task**: task-2046
**목표**: dispatch.py wake-up 실패 시 딜레이 45초→5초 축소 (cron 자체가 봇을 깨우므로)
**승인**: 헤르메스 2026-04-21 "cokacdir --cron이 봇을 시작시키므로 과도한 딜레이 불필요"
**근거**: task-2041에서 "." 메시지 제거 후 세션 시작 지연 문제 분석

---

## 목표

wake-up 실패 시 dispatch 딜레이를 45초에서 5초로 축소하여, cron 명령이 직접 봇을 시작시키는 동작에 의존하도록 변경

## 범위

### 포함
- dispatch.py의 wake-up 로직 2곳에서 _dispatch_delay = 45 → 5 변경
- 관련 로거 메시지 업데이트

### 제외
- _wake_up_bot() 함수 자체 제거 (인터페이스 호환성 유지)
- _dispatch_delay = 10 기본값 변경
- 기타 dispatch 로직 변경

## 위임 계획

- 코드 변경: **불칸(백엔드)** — dispatch.py 수정

## 검증 기준

- grep _dispatch_delay = 45: `grep -c "_dispatch_delay = 45" dispatch.py` → 0
- grep _dispatch_delay = 5: `grep -c "_dispatch_delay = 5" dispatch.py` → 2
- pytest: `python3 -m pytest tests/test_dispatch.py -x` → 179 passed
