From 1af10ded74f645fae1b368381190d88160332d2c Mon Sep 17 00:00:00 2001 From: Vietbao Tran <46217210+TapuCosmo@users.noreply.github.com> Date: Sun, 24 Aug 2025 19:33:24 -0700 Subject: [PATCH] fix: wait for watched files to finish being written (#17100) (#21180) This makes the external library watcher wait for files in watched directories to finish being written before queuing jobs for each file. --- server/src/services/library.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/services/library.service.ts b/server/src/services/library.service.ts index 4c96ad0062..c5f6971a83 100644 --- a/server/src/services/library.service.ts +++ b/server/src/services/library.service.ts @@ -123,6 +123,10 @@ export class LibraryService extends BaseService { { usePolling: false, ignoreInitial: true, + awaitWriteFinish: { + stabilityThreshold: 5000, + pollInterval: 1000, + }, }, { onReady: () => _resolve(),