-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate notification - a single change triggers 2 notifications to the container. #13
Comments
Maybe can be useful - https://stackoverflow.com/questions/21587415/python-watchdog-modified-and-created-duplicate-events Sorry I don't deal with python. |
Hi Dr. Safi,
|
|
Dear @myuseringithub and @fchastanet, The version of 1.2.0 To try it:
I kindly ask you to test it in your environment and report your results. If your expireience with this feature is good, I will make it enabled by default in the next release. |
Thanks for the effort, I've implemented my own debounce around the issue. Once I will have time to test it, I will write up. |
Unfortunately I'm still getting I'm getting exactly 2 notifications for every single file change, even with a debounce of 3 seconds. Here's a screncap, you can tell I didn't do anything in between saves (first time was ctrl+s, the second was clicking the save icon, nothing else): Can anyone else reproduce this bug? Here's what I did: In a folder called version: '3'
services:
alpine:
image: node:6.17-alpine
entrypoint: tail -f /dev/null
restart: always
volumes:
- .:/var/www/html Run via npm install -g nodemon
nodemon -e "*.txt" /tail -f /dev/null Then be sure you also start |
Hi, all notifications of changes are duplicated, for some reason the container receives double the modification number.
A single file modified change, triggers 2 container notify calls.
Suggested workaround:
Could you add an option for a slight delay like 100 ms, to prevent
docker-volume-watcher
from triggering false notifications (when it comes to the same container) ?e.g.
docker-volume-watcher --delay 100
Versions:
pip list
The text was updated successfully, but these errors were encountered: