Skip to content

SetMaxEvents limits the event creation for files #105

Open
@aditi-plivo

Description

@aditi-plivo

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions