tuning job log views and deep scan archive processing.

This commit is contained in:
Bryan Van Deusen
2026-02-02 18:48:01 -05:00
parent 042a69f9c3
commit 09883960d4
9 changed files with 1078 additions and 103 deletions
+11 -3
View File
@@ -4,7 +4,7 @@ A Flask-based image repository with Celery task processing for importing, organi
> **IMPORTANT**: This summary must be kept up to date with any code changes. Update the timestamp below when making modifications.
>
> **Last Updated**: 2026-01-31 (Scan optimization: quick/deep scan modes, archive tag merging)
> **Last Updated**: 2026-02-01 (Settings dashboard: system stats, task filtering, error details)
---
@@ -290,12 +290,20 @@ Import tasks support two modes based on `context.deep_scan`:
| Route | Purpose |
|-------|---------|
| `POST /api/import/trigger` | Start scan (params: `deep=true` for deep scan, `regenerate_thumbnails`, `reapply_sidecars`, `verify_hashes`) |
| `GET /api/import/status` | Queue status and recent tasks |
| `GET /api/import/status` | Queue status counts and active batch info |
| `GET /api/import/tasks` | List tasks with filtering (params: `status`, `task_type`, `search`, `limit`, `offset`) |
| `GET /api/import/task/<id>` | Task details |
| `POST /api/import/retry-failed` | Retry failed tasks |
| `POST /api/import/clear-completed` | Clear completed tasks |
| `POST /api/import/clear-completed` | Clear tasks (params: `statuses`, `older_than_days` for age-based cleanup) |
| `GET /api/import/task-stats` | Task counts with age breakdown (today, this week, older) |
| `GET /api/import/batches` | List import batches |
### System Stats API
| Route | Purpose |
|-------|---------|
| `GET /api/system/stats` | System overview: total images, tags, storage used, pending imports |
### Settings API
| Route | Line | Purpose |