-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 문제 설명
장시간 실행 시 git, node, claude 프로세스가 정리되지 않고 남아있음
🔍 주요 원인
-
Claude Developer (
src/services/developer/claude-developer.ts:534-542)- 타임아웃 시 프로세스 그룹 전체가 종료되지 않음
bash -c실행 시 하위 프로세스들이 orphan으로 남음
-
Git Service (
src/services/git/git.service.ts)- execAsync timeout 설정은 있지만 프로세스 정리 로직 없음
🛠️ 해결 방안
Claude Developer 개선 (핵심)
// 기존
child.kill('SIGTERM');
// 개선
child.kill('SIGTERM');
if (child.pid) {
process.kill(-child.pid, 'SIGTERM'); // 프로세스 그룹 전체 종료
}spawn 옵션 개선
const child = spawn('bash', ['-c', bashCommand], {
// ...
detached: false,
killSignal: 'SIGTERM'
});📝 할 일
- Claude Developer 프로세스 그룹 종료 구현
- Graceful shutdown 핸들러 추가
- 테스트 케이스 작성
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working