Skip to content

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

Open
mhajder wants to merge 1 commit into
open-webui:mainfrom
mhajder:feat/watch
Open

feat(watch): add --polling flag for SMB/CIFS/NFS mounted volumes#21
mhajder wants to merge 1 commit into
open-webui:mainfrom
mhajder:feat/watch

Conversation

@mhajder

@mhajder mhajder commented Jun 3, 2026

Copy link
Copy Markdown

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

@mhajder mhajder marked this pull request as ready for review June 6, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant