docs: add complete delivery package with full file paths
- Lists all modified files with absolute paths - Includes step-by-step instructions for Studio team - Documents commits and expected results - Provides troubleshooting guidance
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
---
|
||||
title: Worker Deadlock Fix - Delivery Package
|
||||
version: 1.0
|
||||
date: 2026-09-18
|
||||
author: Core Team
|
||||
status: delivered
|
||||
---
|
||||
|
||||
# Worker Deadlock Fix - Delivery Package
|
||||
|
||||
**交付日期**: 2026-09-18
|
||||
**交付狀態**: ✅ 已完成並提交
|
||||
**優先級**: High
|
||||
|
||||
---
|
||||
|
||||
## 交付清單
|
||||
|
||||
### 核心代碼修復
|
||||
|
||||
| 文件路徑 | 狀態 | Commit |
|
||||
|----------|------|--------|
|
||||
| `/Users/accusys/momentry_core/src/worker/job_worker.rs` | ✅ 已修復 | `0fe09af` |
|
||||
| `/Users/accusys/momentry_core/src/core/admin_config.rs` | ✅ 已修復 | `31d1b405` |
|
||||
|
||||
### 技術文檔
|
||||
|
||||
| 文件路徑 | 用途 |
|
||||
|----------|------|
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-18_worker_running_deadlock_fix.md` | 技術細節報告 |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/STUDIO_TEAM/2026-09-18_worker_deadlock_fix_handoff.md` | Studio 團隊交付文件 |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/STUDIO_TEAM/README.md` | 快速操作指南 |
|
||||
|
||||
---
|
||||
|
||||
## 問題摘要
|
||||
|
||||
### 症狀
|
||||
- UI "Deep Scan" 按鈕點擊後,處理器卡在 "running" 狀態
|
||||
- Worker 進入無限循環
|
||||
- 用戶無法處理影片
|
||||
|
||||
### 根本原因
|
||||
- **File**: `/Users/accusys/momentry_core/src/worker/job_worker.rs:590-600, 1434-1494`
|
||||
- **Bug**: Worker 在設置狀態為 "running" 後才檢查並發限制
|
||||
- **Result**: 狀態卡在 "running",處理器從未啟動
|
||||
|
||||
---
|
||||
|
||||
## Studio 團隊執行步驟
|
||||
|
||||
### Step 1: 拉取代碼
|
||||
|
||||
```bash
|
||||
cd /Users/accusys/momentry_core
|
||||
git pull origin main
|
||||
```
|
||||
|
||||
### Step 2: Build
|
||||
|
||||
```bash
|
||||
cargo build --release --bin momentry
|
||||
```
|
||||
|
||||
### Step 3: 重啟 Worker
|
||||
|
||||
```bash
|
||||
./run-worker-3002.sh
|
||||
```
|
||||
|
||||
### Step 4: 驗證
|
||||
|
||||
```bash
|
||||
# 檢查 binary 時間(應該在 2026-09-18 20:06 之後)
|
||||
ls -la /Users/accusys/momentry_core/target/release/momentry
|
||||
|
||||
# 測試 UI Deep Scan
|
||||
# 應該看到 ASR, OCR, Pose 正常執行
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Commits
|
||||
|
||||
| Commit Hash | 說明 |
|
||||
|-------------|------|
|
||||
| `0fe09af` | fix: prevent 'running' status deadlock in worker |
|
||||
| `31d1b405` | fix: correct face detection threshold defaults |
|
||||
| `2c1618e` | docs: add worker running deadlock fix report |
|
||||
| `51c86a2` | docs: add Studio team handoff documents |
|
||||
|
||||
---
|
||||
|
||||
## 完整文件路徑列表
|
||||
|
||||
### 核心代碼(已修改)
|
||||
|
||||
```
|
||||
/Users/accusys/momentry_core/src/worker/job_worker.rs
|
||||
/Users/accusys/momentry_core/src/core/admin_config.rs
|
||||
```
|
||||
|
||||
### 啟動腳本
|
||||
|
||||
```
|
||||
/Users/accusys/momentry_core/run-worker-3002.sh
|
||||
/Users/accusys/momentry_core/run-server-3002.sh
|
||||
```
|
||||
|
||||
### 文檔
|
||||
|
||||
```
|
||||
/Users/accusys/momentry_core/docs_v1.0/M4_workspace/2026-09-18_worker_running_deadlock_fix.md
|
||||
/Users/accusys/momentry_core/docs_v1.0/STUDIO_TEAM/2026-09-18_worker_deadlock_fix_handoff.md
|
||||
/Users/accusys/momentry_core/docs_v1.0/STUDIO_TEAM/README.md
|
||||
/Users/accusys/momentry_core/docs_v1.0/STUDIO_TEAM/2026-09-18_delivery_package.md
|
||||
```
|
||||
|
||||
### 日誌文件
|
||||
|
||||
```
|
||||
/Users/accusys/momentry_core/logs/worker_3002.log
|
||||
/Users/accusys/momentry_core/logs/momentry_3002.log
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 預期結果
|
||||
|
||||
### 修復前
|
||||
```
|
||||
UI Deep Scan → 處理器卡在 "running" → Worker deadlock → 無法處理
|
||||
```
|
||||
|
||||
### 修復後
|
||||
```
|
||||
UI Deep Scan → 處理器正常執行 → 完成 → 用戶可正常使用
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 聯繫方式
|
||||
|
||||
如有問題,創建文件:
|
||||
```
|
||||
/Users/accusys/momentry_core/docs_v1.0/M4_workspace/YYYY-MM-DD_issue_report.md
|
||||
```
|
||||
|
||||
Core 團隊會通過 git commit 回覆。
|
||||
Reference in New Issue
Block a user