---
task_id: task-2139
type: plan
scope: task
created: 2026-04-23
updated: 2026-04-23
status: completed
---

# 계획서: task-2139

**task**: task-2139
**목표**: dispatch.py wake-up 2단계 제거, cron 직접 전송 방식으로 원복
**승인**: 아누 2026-04-23
**근거**: cokacdir --cron이 자체적으로 세션을 열므로 별도 wake-up 불필요

---

## 목표

dispatch.py의 `_wake_up_bot()` 함수(Stage1 wake-up 메시지 + Stage2 45초 대기)를 제거하고, dispatch 딜레이를 10초 고정으로 단순화한다.

## 범위

### 포함
- `_wake_up_bot()` 함수 전체 삭제
- 일반 dispatch에서 wake-up 호출 + 가변 딜레이 로직 제거
- composite dispatch에서 동일 처리
- 관련 테스트 업데이트

### 제외 (다음 페이즈 이후)
- `_check_bot_process()` 함수 (다른 곳에서 사용, 유지)
- member-status write 코드 (task-2138에서 처리)

## 위임 계획

- 코드 수정: **카르티케야(백엔드)** — 함수 삭제 + 호출부 단순화
- 테스트 수정: **비슈누(팀장)** — TestWakeUpDelay → TestDispatchDelayFixed 교체

## 검증 기준

- `_wake_up_bot` grep 0건: `grep "_wake_up_bot" dispatch.py` → 0건
- `_schedule_status_rollback` grep 0건: `grep "_schedule_status_rollback" dispatch.py` → 0건
- `_dispatch_delay` 모두 10초: `grep "_dispatch_delay" dispatch.py` → 모두 `= 10`
- pytest 통과: `pytest tests/test_dispatch.py` → 180 passed
