Describe the bug
I am building a tool which receive files, and whenever there's an incoming file - i am calling db for crud operations. mongodb-atlas,
using mongoose.
looks like I can't force chokidar to wait until db operation finishes until serving the new incoming file (case when many files comes at once)
tried many configuration setting , non solved my issue
I am Sure that there's a solution but i can't understand how ..
Versions (please complete the following information):
Chokidar version 3.5.3
Node version v18.17.1
OS version: windows 11
Steps to reproduce the behavior. Include filename and chokidar config.
ignoreInitial: true,
ignorePermissionErrors: true,
awaitWriteFinish: true,
binaryInterval: 10000
I use the Unwatch() func to unlisten from a file by the end of each operation . Expected behavior
force chokidar to actually wait until db operations finishes and then serve the next file (when receive more than 2-3 files at once)
Current Behaviorduplications in db operations - code is running to fast and db cannot detect an existing entry on time.
Describe the bug I am building a tool which receive files, and whenever there's an incoming file - i am calling db for crud operations. mongodb-atlas, using mongoose. looks like I can't force chokidar to wait until db operation finishes until serving the new incoming file (case when many files comes at once) tried many configuration setting , non solved my issue I am Sure that there's a solution but i can't understand how ..
Versions (please complete the following information):
Steps to reproduce the behavior. Include filename and chokidar config. ignoreInitial: true, ignorePermissionErrors: true, awaitWriteFinish: true, binaryInterval: 10000 I use the Unwatch() func to unlisten from a file by the end of each operation . Expected behavior force chokidar to actually wait until db operations finishes and then serve the next file (when receive more than 2-3 files at once) Current Behavior duplications in db operations - code is running to fast and db cannot detect an existing entry on time.