gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.
http://packages.python.org/watchdog/
Apache License 2.0
6.64k stars 698 forks source link

PollingObserver silently dies when SMB mountpoint is unavailable for some time #1065

Open cmantsch opened 2 months ago

cmantsch commented 2 months ago

I am observing a mounted SMB share using a polling observer (SMB share on Windows Server, Observer on Ubuntu 24.04).

When the Fileserver goes offline for a few minutes, the PollingObserver does not emit any events anymore after the Fileserver comes up again. Only way to recover back to normal has been to restart the application.

Is there a way inside watchdog to recover, maybe some exception that can be handled?