Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetMaxEvents limits the event creation for files #105

Open
aditi-plivo opened this issue Sep 8, 2020 · 1 comment
Open

SetMaxEvents limits the event creation for files #105

aditi-plivo opened this issue Sep 8, 2020 · 1 comment

Comments

@aditi-plivo
Copy link

@radovskyb As a solution for High CPU usage for polling large directories to monitor Create/Move events
watch.FilterOps(watcher.Create, watcher.Move)

We tried the following things:

But SetMaxEvents is not working as expected, as the files which are left after 5000 files are left as it is, once more files are created the watcher will again pickup random 5000 files to create events and the left over files are never picked up for event creation.

Would like to know if we misunderstood the use case for SetMaxEvents or using it in a wrong way

@rizwankh
Copy link

Facing the same issue. Even when I set the polling to 1 ms, it still misses some files, even though I have not set any SetMaxEvents at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants