🔧 System Task Manager
Keep your library running smoothly with automated maintenance tasks. Monitor progress in real-time, manage storage efficiently, and ensure your metadata stays synchronized with your book files.
Note: Tasks run asynchronously in the background, allowing you to continue using Booklore while they execute.
🌟 What You'll Achieve
With System Task Manager, you can:
- Free up disk space by clearing cached files when needed
- Synchronize metadata between your database and book files
- Monitor task progress in real-time with live updates
- Manage background operations without interrupting your workflow
- Handle stuck tasks with built-in stale detection
💡 Pro Tip: Run cache clearing tasks periodically to maintain optimal storage usage, and refresh metadata after bulk file modifications.
✨ Key Features & Capabilities
📊 Real-Time Task Monitoring
- Live Progress Updates: Watch tasks execute with WebSocket-based status updates
- Visual Progress Bars: Track completion percentage at a glance
- Status Indicators: Color-coded badges show task state instantly
- Task History: View completion timestamps and last run information
🛠️ Available Maintenance Tasks
- Cache Management: Clear CBX and PDF caches to free up storage
- Metadata Synchronization: Refresh database from library files
- Flexible Options: Choose how metadata updates are applied
- Concurrent Execution: Run multiple tasks simultaneously
📖 Understanding Available Tasks
🗑️ Cache Clearing Tasks
Clear CBX Cache
- Removes cached extracted images from Comic Book Archive files
- Frees up disk space consumed by cached pages
- Cache rebuilds automatically during reading
- Safe to run anytime without data loss
Clear PDF Cache
- Removes cached rendered pages from PDF documents
- Reclaims storage used by PDF page previews
- Improves reading performance when cache is active
- Cache regenerates on-demand during usage
🔄 Metadata Refresh Task
Refresh Metadata from Library Files
Synchronizes your database with metadata stored in actual book files.
Replace Modes:
- Replace Missing Only (Recommended): Updates only empty or missing metadata fields while preserving existing data
- Replace All Metadata: Overwrites all database metadata with file-based metadata, even if data already exists
⚠️ Important: "Replace All Metadata" will overwrite your existing database metadata. Use this mode carefully, preferably after backing up your database.
🚀 Managing Tasks
Accessing Task Management
-
Navigate to Task Management:
- Go to Settings in the main navigation
- Select Task Management from the settings menu
-
View Available Tasks:
- Browse the list of maintenance tasks
- Check current status and last run timestamps
- Review task-specific information and options
-
Refresh Task List:
- Click Refresh in the top right corner
- Updates all task statuses manually
- Useful for checking latest information
🗑️ Clearing Cache Storage
Free up disk space by removing cached files that can be safely regenerated.
When to Clear Cache
Clear caches when:
- Storage is Low: Free up gigabytes of disk space quickly
- Cache is Large: Monitor sizes shown in task descriptions
- After Updates: Clean up outdated cached files
- Troubleshooting: Resolve rendering issues by forcing cache rebuild
Clearing CBX or PDF Cache
-
Locate the Cache Task:
- Find Clear CBX Cache or Clear PDF Cache
- Review the current cache size displayed
-
Start Cache Clearing:
- Click Clear Cache button
- Task begins immediately
- Monitor progress if available
-
Verify Completion:
- Success status appears with timestamp
- Cache size updates to reflect freed space
- Run again anytime as cache rebuilds during use
What Happens When You Clear Cache
- ✅ Cached files are permanently deleted
- ✅ Disk space is freed immediately
- ✅ Books remain in your library untouched
- ✅ Cache rebuilds automatically when you read
- ⚠️ First page loads may be slightly slower after clearing
🔄 Refreshing Metadata
Synchronize your database with metadata embedded in your book files.
When to Refresh Metadata
Refresh metadata when:
- Files Modified Externally: You've edited book files outside Booklore
- After Bulk Imports: Ensure all file metadata is captured
- Restoring Data: Recover metadata from backup files
- Fixing Inconsistencies: Sync database with authoritative file data
Choosing a Replace Mode
Replace Missing Only (Recommended)
- ✅ Safe for routine maintenance
- ✅ Preserves existing database metadata
- ✅ Only fills in missing or empty fields
- ✅ Best for most use cases
Replace All Metadata
- ⚠️ Overwrites all existing metadata
- ⚠️ Use only when restoring from files
- ⚠️ Backup database first
- ⚠️ Cannot be undone
Starting a Metadata Refresh
-
Select Replace Mode:
- Choose between "Replace Missing Only" or "Replace All Metadata"
- Consider the impact on your existing data
- Verify your choice before proceeding
-
Start the Refresh:
- Click Start Refresh button
- Task begins processing immediately
- Progress updates appear in real-time
-
Monitor Progress:
- Watch the progress bar advance
- Read status messages showing current files
- View estimated completion time
- Click Cancel if needed to stop
-
Verify Completion:
- Success status appears with timestamp
- Review completion information
- Check affected books to verify changes
- Database now reflects file metadata
📊 Task Status Indicators
Understanding what each status means helps you manage tasks effectively.
Status Badges
Active States:
- In Progress (Blue badge): Task is currently running with live updates
- Stale (Warning badge): Task hasn't updated in 2+ minutes and may be stuck
Completion States:
- Success (Green dot): Task completed without errors
- Error (Red dot): Task failed to complete successfully
- Warning (Yellow dot): Task completed but encountered issues
- Cancelled (Orange dot): Task was manually stopped
Task Information Display
While Running:
- Current status message and activity
- Visual progress bar with percentage
- Start timestamp and elapsed time
- Cancel button to stop execution
After Completion:
- Final status and completion message
- Total execution time
- Completion timestamp
- Any warnings or errors encountered
⚠️ Handling Stale Tasks
Tasks that become unresponsive need manual intervention.
What is a Stale Task?
A task becomes "stale" when:
- No status updates received from the booklore server for 2+ minutes
- Progress appears frozen
- May indicate network issues or server problems
- Could be stuck in an infinite loop
Resolving Stale Tasks
-
Identify the Issue:
- Look for "Stale" warning badge
- Review last status message
- Check when updates stopped
-
Cancel the Task:
- Click Cancel button
- Wait for cancellation to complete
- Task should stop within seconds
-
Investigate and Retry:
- Check network connectivity
- Verify server is running
- Restart the task if needed
- Monitor for recurring issues
💡 Tip: Stale tasks usually resolve by cancelling and restarting. If the issue persists, check your server logs or network connection.
🎯 Best Practices
Cache Management Strategy
-
Monitor Sizes Regularly
- Check cache sizes when browsing tasks
- Set a threshold for clearing (e.g., >2GB)
- Clear during low-usage periods
-
Clearing Frequency
- Clear caches monthly for active libraries
- After major reading sessions
- Before running low on disk space
Metadata Refresh Strategy
-
Use "Replace Missing Only" For:
- Routine maintenance tasks
- After adding new books
- When fixing incomplete metadata
- General synchronization needs
-
Use "Replace All Metadata" For:
- Restoring from file backups
- Correcting widespread database issues
- Starting fresh with file-based metadata
- After bulk file modifications
-
Before Major Refreshes:
- Backup your database
- Test on a small subset first
- Document your current metadata state
- Schedule during low-usage periods
🔧 Common Tasks
Task 1: Free Up Disk Space
Goal: Clear caches to reclaim storage
- Go to Task Management
- Check cache sizes for CBX and PDF
- Click Clear Cache on largest caches
- Wait for completion confirmation
- Verify freed space in task descriptions
Task 2: Sync After Bulk File Changes
Goal: Update database with modified file metadata
- Navigate to Task Management
- Find Refresh Metadata from Library Files
- Select Replace Missing Only mode
- Click Start Refresh
- Monitor progress until completion
- Verify changes in affected books
Task 3: Restore Metadata from Files
Goal: Overwrite database with file-based metadata
- Backup your database first
- Go to Task Management
- Select Refresh Metadata from Library Files
- Choose Replace All Metadata mode
- Click Start Refresh and confirm
- Wait for complete synchronization
- Verify restored metadata
Task 4: Handle a Stuck Task
Goal: Recover from unresponsive task
- Identify task with "Stale" badge
- Review last status message
- Click Cancel button
- Wait for cancellation confirmation
- Refresh task list
- Restart task if needed
Task 5: Regular Maintenance Routine
Goal: Keep library optimized weekly/monthly
- Review all task statuses
- Clear caches if >2GB in size
- Run metadata refresh with "Replace Missing Only"
- Monitor for any errors or warnings
- Document completion in your schedule
🆘 Troubleshooting
Task Won't Start
Cause: Another instance may be running or system busy
Solution:
- Refresh the task list
- Wait for current tasks to complete
- Check system resources
- Restart Booklore if needed
Progress Bar Frozen
Cause: WebSocket connection lost or task stalled
Solution:
- Click Refresh to update manually
- Check network connectivity
- Cancel if task shows "Stale"
- Restart the task
Metadata Refresh Incomplete
Cause: Files moved, deleted, or inaccessible
Solution:
- Check task completion message for errors
- Verify library folder permissions
- Ensure files haven't been moved
- Re-run refresh after fixing issues
Cache Not Clearing
Cause: Files in use or permission issues
Solution:
- Close all open books
- Ensure no readers are active
- Check folder permissions
- Retry cache clearing
Changes Don't Appear
Cause: Browser cache or page not refreshed
Solution:
- Refresh the page manually
- Clear browser cache
- Check task completion status
- Verify in book details view
Remember: Task Management keeps your library optimized and synchronized. Regular maintenance ensures smooth operation and efficient storage usage! 🚀✨