Complete initialization restart protection task
This commit is contained in:
@@ -158,6 +158,14 @@ For each task completed:
|
||||
- Simplified exception handling in both get_database_session() and get_optional_database_session()
|
||||
- Removed nested try-except inside yield that was causing generator issues
|
||||
- Let async context manager handle exceptions naturally
|
||||
7. ✅ **Initialization Restart Protection** (Completed: 2026-01-23)
|
||||
- Task: Ensure initialization doesn't restart on server restart by using database flags
|
||||
- Status: VERIFIED - Already implemented correctly
|
||||
- Details:
|
||||
- SystemSettings.initial_scan_completed flag already prevents re-running initialization
|
||||
- initialization_service checks this flag before performing series sync
|
||||
- All initialization steps (scan, NFO, media) have individual completion flags
|
||||
- Server restart properly skips already-completed steps
|
||||
|
||||
### Active Tasks:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user