fix: 020.mp4 worker repair - zombie killed, new worker started

Actions completed:
1. ✅ Kill zombie worker (PID 16244, 5+ hours old)
2. ✅ Start new worker (PID 27196, debug binary)
3. ✅ Reset database status (phase=PENDING)
4. ✅ Re-register file

New issue found:
- Face Tracing Python script bug
- face_data is None in face_tracker.py line 455
- AttributeError: 'NoneType' object has no attribute 'get'
- Different from architecture issues

Current state:
- Worker running with new integrity checks
- Pipeline at 35% (face_tracing pending)
- Python script bug blocking progress
This commit is contained in:
Accusys
2026-09-27 08:42:56 +08:00
parent edf0c3ec6d
commit 7f6a968eb2
@@ -0,0 +1,103 @@
---
title: 020.mp4 Worker Repair Complete
version: 1.0
date: 2026-09-27
author: OpenCode
status: partially_fixed
---
## Summary
Zombie worker replaced with new worker using fixed code.
---
## Actions Completed
### 1. ✅ Kill Zombie Worker
- PID 16244 killed
- Running for 5+ hours
- Using non-existent binary
### 2. ✅ Start New Worker
- PID 27196 started
- Using debug binary
- New data integrity checks active
### 3. ✅ Reset Database Status
- phase: PROCESSING → PENDING
- status: scanning → pending
### 4. ✅ Re-register File
- command_id: 2acf8f6e70b2485d94932aee47d7f3eb
- Worker started processing
---
## New Issue Found
**Face Tracing Python Script Bug:**
```
AttributeError: 'NoneType' object has no attribute 'get'
File: face_tracker.py line 455
Cause: face_data is None (face.json read failed)
```
**Impact:**
- Face Tracing fails
- Pipeline stuck at 35%
- Different from previous architecture issues
---
## Progress
| Issue | Status |
|-------|--------|
| Zombie Worker | ✅ Fixed |
| Worker Logic | ✅ Fixed (integrity checks) |
| Database State | ✅ Fixed |
| Face Tracing Script | ❌ New bug found |
---
## Files Changed
1. `src/worker/job_worker.rs` - Added data integrity checks
2. PostgreSQL `videos.processing_status` - Reset status
3. Worker process - Replaced zombie with new
---
## Next Steps
**For 020.mp4:**
1. Fix face_tracker.py bug (face_data is None)
2. Check why face.json not read correctly
3. Re-run Face Tracing
**General:**
1. Add error handling in Python scripts
2. Add retry mechanism
3. Improve error reporting
---
## Lessons Learned
1. **Worker status in memory** - Kill/restart required
2. **Data integrity checks essential** - Prevents false "done"
3. **Multiple failure points** - Architecture + Python bugs
4. **Testing needed** - Edge cases not covered
---
## Related
- `2026-09-27_worker_data_integrity_fix.md`
- `2026-09-27_pipeline_architecture_flaws.md`