Skip to content

Commit 1af10de

Browse files
authored
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.
1 parent 3f1e11a commit 1af10de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/services/library.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export class LibraryService extends BaseService {
123123
{
124124
usePolling: false,
125125
ignoreInitial: true,
126+
awaitWriteFinish: {
127+
stabilityThreshold: 5000,
128+
pollInterval: 1000,
129+
},
126130
},
127131
{
128132
onReady: () => _resolve(),

0 commit comments

Comments
 (0)