Comments (5)
Yes, this is owing to kqueue being used on OS X/BSD. I have yet to get around to fixing the FSEvents code to work on OS X. kqueue by design opens file descriptors for all the files it needs to monitor. Hence if you're monitoring a directory with a lot of files, you're likely to run into this problem. For now there's only one workaround and that involves setting ulimit -n <some-high-number>
in your ~/.profile
file.
Perhaps, if someone can get the fsevents code fixed before I can get around to it, you wouldn't have this problem on OS X.
Cheers!
from watchdog.
Thanks for a prompt response. I would like to take a deeper look, may be implementing the fix... Wouldn't directory snapshotting be a workaround in this case? What would be the other suggestion to fixing this issue?
Thanks!
from watchdog.
Directory snapshotting code already exists in the code base. Perhaps, another fix could be letting users choose (via a command line option) the observer to use. You can see the --debug-force-polling
option to the log
subcommand. It forces the use of snapshotting (which is rather slow but works). May be such options can be added to the shell-command
subcommand as well.
Cheers!
from watchdog.
Right, the snapshotting is so slooooooooow... According to the following:
try: # pragma: no cover
from watchdog.observers.fsevents import FSEventsObserver_BUGGY_TODO as _Observer
FSEvents observer never gets called.
from watchdog.
Yes, it's currently disabled in the release.
from watchdog.
Related Issues (20)
- Inconsistent Triggering of on_created Event HOT 4
- On_moved not able to detect moved file/folder on certain path.
- Version 1.0.2 is not available in PyPi HOT 2
- failure to build on macos with `-Werror=unguarded-availability-new` HOT 4
- Installation fails with 4.0.0 HOT 25
- Unable to find installation candidates on v4.0.0 HOT 6
- silently fails if path is file HOT 7
- types: Types checks reporting issues after updating watchdog to 3.0.0. Same issue with 4.0.0 HOT 8
- Questions about Copilot + Open Source Software Hierarchy
- [Question] Is it possible to execute manuall poll?
- Is it possible to prevent being connected to named pipe on Windows platform?
- [Feature] Allow adding `ObservedWatch` without handlers
- Improve typing references for events
- Moved file memory leak
- [Question] is watchdog support s3fs-fuse mount aws s3 bucket to file system directory monitor
- Feature Request: Allow functions as event handlers
- Race condition in Observer.start() and observer.schedule() HOT 1
- Threads not cleaning up when closing Observer if using Eventlet. HOT 1
- Ambiguity in setting FileClosedEvent in filter HOT 5
- class FSEventsObserver.schedule() is missing parameter 'event_filter'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchdog.