You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`inotify` does not work reliably with network file systems (e.g., NFS,
CIFS) commonly used in cloud environments. These
file systems may not propagate file system events correctly, causing
`inotify` to miss changes. To ensure consistent file
monitoring across these environments, polling is enabled by default in
`FileWatcher`.
Fixes#256
-`FileWatcher`: The file polling mechanism is now forced by default. This provides reliable and consistent file monitoring on network file systems (e.g., CIFS). However, it may have a performance impact on local file systems or when monitoring a large number of files.
6
+
- To disable file polling, set the `force_polling` parameter to `False`.
7
+
- The `polling_interval` parameter defines the interval for polling changes. This is relevant only when polling is enabled and defaults to 1 second.
8
+
3
9
## New Features
4
10
5
11
-`Timer.reset()` now supports setting the interval and will restart the timer with the new interval.
6
12
7
13
## Bug Fixes
8
14
9
-
-`FileWatcher`: Fixed `ready()` method to return False when an error occurs. Before this fix, `select()` (and other code using `ready()`) never detected the `FileWatcher` was stopped and the `select()` loop was continuously waking up to inform the receiver was ready.
15
+
-`FileWatcher`:
16
+
- Fixed `ready()` method to return False when an error occurs. Before this fix, `select()` (and other code using `ready()`) never detected the `FileWatcher` was stopped and the `select()` loop was continuously waking up to inform the receiver was ready.
17
+
- Reports file events correctly on network file systems like CIFS.
10
18
11
19
-`Timer.stop()` and `Timer.reset()` now immediately stop the timer if it is running. Before this fix, the timer would continue to run until the next interval.
0 commit comments