Files
momentry_core/src/core/db
Accusys 3aaaf36ff6 fix: processor status timestamps and admin config defaults
** Problem 1: started_at not set
- update_processor_result() ignored started_at/completed_at parameters
- Only updated 'status' field, leaving timestamps as None
- Caused false 'running' state detection

** Problem 2: AdminConfig missing fields
- admin_config.json missing required fields (updated_at, paths, etc.)
- JSON parsing failed, caused panic on worker startup
- Lazy instance poisoned, all processors failed

** Fix:
1. update_processor_result now sets timestamps automatically:
   - Running -> started_at = CURRENT_TIMESTAMP
   - Completed/Failed -> completed_at = CURRENT_TIMESTAMP

2. Added #[serde(default)] to all AdminConfig fields
   - Allows partial config files
   - Missing fields get default values

** Impact:
- Processor status now accurately tracked
- Worker can start with minimal config
- UI 'Deep Scan' deadlock resolved
2026-09-18 05:00:59 +08:00
..