[PR #21] feat(watch): add --polling flag for SMB/CIFS/NFS mounted volumes #85

Open
opened 2026-10-18 21:14:14 +00:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • f05416d feat(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 PollingObserver support to oikb watch for network-mounted volumes (SMB/CIFS/NFS) where native kernel filesystem events are not available.

Problem

oikb watch uses watchdog's native Observer which 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

  • New --polling flag switches to PollingObserver, which detects changes via periodic stat() calls
  • New --polling-interval option (default: 5s) controls poll frequency
  • Debounce auto-tunes to 3s in polling mode (vs 1s native) to handle SMB write bursts
  • All defaults remain unchanged - no breaking changes for existing users

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/oikb/pull/21 **Author:** [@mhajder](https://github.com/mhajder) **Created:** 6/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/watch` --- ### 📝 Commits (1) - [`f05416d`](https://github.com/open-webui/oikb/commit/f05416dbb1e17867c1aae03457fdb0798bcd0a2c) feat(watch): add --polling flag for SMB/CIFS/NFS mounted volumes ### 📊 Changes **4 files changed** (+129 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+29 -1) 📝 `docs/guide.md` (+50 -0) 📝 `src/oikb/cli.py` (+31 -3) 📝 `src/oikb/watcher.py` (+19 -2) </details> ### 📄 Description ### Summary Add `PollingObserver` support to `oikb watch` for network-mounted volumes (SMB/CIFS/NFS) where native kernel filesystem events are not available. ### Problem `oikb watch` uses watchdog's native `Observer` which 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 - New `--polling` flag switches to `PollingObserver`, which detects changes via periodic `stat()` calls - New `--polling-interval` option (default: 5s) controls poll frequency - Debounce auto-tunes to 3s in polling mode (vs 1s native) to handle SMB write bursts - All defaults remain unchanged - no breaking changes for existing users --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/oikb#85
No description provided.