Skip to content

High performance self-hosted photo and video management solution.

fix: wait for watched files to finish being written (#17100) (#21180)

Vietbao Tran1af10ded74f6
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(),