mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #21] feat(watch): add --polling flag for SMB/CIFS/NFS mounted volumes #85
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/oikb/pull/21
Author: @mhajder
Created: 6/3/2026
Status: 🔄 Open
Base:
main← Head:feat/watch📝 Commits (1)
f05416dfeat(watch): add --polling flag for SMB/CIFS/NFS mounted volumes📊 Changes
4 files changed (+129 additions, -6 deletions)
View changed files
📝
README.md(+29 -1)📝
docs/guide.md(+50 -0)📝
src/oikb/cli.py(+31 -3)📝
src/oikb/watcher.py(+19 -2)📄 Description
Summary
Add
PollingObserversupport tooikb watchfor network-mounted volumes (SMB/CIFS/NFS) where native kernel filesystem events are not available.Problem
oikb watchuses watchdog's nativeObserverwhich relies on kernel-level events (FSEvents on macOS, inotify on Linux). These events are not propagated over network filesystems, changes made on SMB/CIFS/NFS shares are silently missed, and watch never triggers a sync.Solution
--pollingflag switches toPollingObserver, which detects changes via periodicstat()calls--polling-intervaloption (default: 5s) controls poll frequency🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.