[PR #11908] [MERGED] refactor(server): track thumbnail jobs in job status table #13408

Closed
opened 2026-02-05 15:14:13 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/11908
Author: @jrasm91
Created: 8/19/2024
Status: Merged
Merged: 8/19/2024
Merged by: @jrasm91

Base: mainHead: refactor/job-tracking


📝 Commits (1)

  • 468a083 refactor: track thumbnail jobs in job status table

📊 Changes

4 files changed (+49 additions, -9 deletions)

View changed files

📝 server/src/entities/asset-job-status.entity.ts (+6 -0)
server/src/migrations/1724080823160-AddThumbnailJobStatus.ts (+17 -0)
📝 server/src/repositories/asset.repository.ts (+12 -9)
📝 server/src/services/media.service.ts (+14 -0)

📄 Description

Move thumbnail job tracking from the asset table (previewPath: IsNull()) to the job status table (previewAt: IsNull()). This allows seeing when a thumbnail was generated. Tracking state in the job status table also makes it possible to more easily track job progress and target specific assets for reprocessing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/11908 **Author:** [@jrasm91](https://github.com/jrasm91) **Created:** 8/19/2024 **Status:** ✅ Merged **Merged:** 8/19/2024 **Merged by:** [@jrasm91](https://github.com/jrasm91) **Base:** `main` ← **Head:** `refactor/job-tracking` --- ### 📝 Commits (1) - [`468a083`](https://github.com/immich-app/immich/commit/468a0833b4848885c0785ebf11585f325f85a2e4) refactor: track thumbnail jobs in job status table ### 📊 Changes **4 files changed** (+49 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `server/src/entities/asset-job-status.entity.ts` (+6 -0) ➕ `server/src/migrations/1724080823160-AddThumbnailJobStatus.ts` (+17 -0) 📝 `server/src/repositories/asset.repository.ts` (+12 -9) 📝 `server/src/services/media.service.ts` (+14 -0) </details> ### 📄 Description Move thumbnail job tracking from the asset table (`previewPath: IsNull()`) to the job status table (`previewAt: IsNull()`). This allows seeing _when_ a thumbnail was generated. Tracking state in the job status table also makes it possible to more easily track job progress and target specific assets for reprocessing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 15:14:13 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#13408