[PR #3071] fix(server): transcodes failing due to storage migration happening simultaneously #9848

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

Original Pull Request: https://github.com/immich-app/immich/pull/3071

State: closed
Merged: Yes


Description

Schedules the video conversion job to be enqueued only after storage migration to avoid a File not found error while transcoding. Specifically, it's queued after JPEG thumbnail generation is complete. The reason why this particular job is chosen as a prerequisite is mainly because it already queries for the asset itself on completion, which means the result of this query can be used to check if the asset is a video and only queue for transcoding if so.

An earlier iteration queued all uploaded assets after the storage migration job, but this was misleading from a UX perspective as the number of queued assets for transcoding could be much higher than the number actually transcoded.

Fixes #3047

How Has This Been Tested?

I made a new account and uploaded about a thousand assets. Where before there would sometimes be a "file not found" error in the past, I never got this error with this PR; all videos were encoded successfully.

**Original Pull Request:** https://github.com/immich-app/immich/pull/3071 **State:** closed **Merged:** Yes --- ## Description Schedules the video conversion job to be enqueued only after storage migration to avoid a `File not found` error while transcoding. Specifically, it's queued after JPEG thumbnail generation is complete. The reason why this particular job is chosen as a prerequisite is mainly because it already queries for the asset itself on completion, which means the result of this query can be used to check if the asset is a video and only queue for transcoding if so. An earlier iteration queued all uploaded assets after the storage migration job, but this was misleading from a UX perspective as the number of queued assets for transcoding could be much higher than the number actually transcoded. Fixes #3047 ## How Has This Been Tested? I made a new account and uploaded about a thousand assets. Where before there would sometimes be a "file not found" error in the past, I never got this error with this PR; all videos were encoded successfully.
OVERLORD added the pull-request label 2026-02-05 14:11:48 +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#9848