Open esemwy opened 3 years ago
@esemwy Thank you for performing this test! I always check the open issues before using the library, so I have tried to reproduce your errors on Windows with simple PollingObserver. Running file generator at 10,000 the script seems to leave no files in the folder - they all get deleted. What parameters did you use?
Just tried with 125,000 files generated. None left behind!
It’s been a couple versions since I opened the issue. I will say, I was running on Linux, not Windows. Otherwise, everything was configured as you see above. Our solution was to rename files into place to avoid any possible race condition.
Thank you for clarifying!
I'm using the polling observer, because the eventual implementation will need to watch an NFS mount, but I'm already dropping files when I synthetically generate data. I've stripped down my code to the bare minimum, but still up to half the files get ignored.
I'm including my stripped down example and my test file generator. The generator creates lorem ipsum text of a couple KB. Suggested workarounds would be welcome.
I'm running 2.1.3 from pypi.
filehandler.py
genfiles.py