Skip to content
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

Don't reload on watchdog 'opened' events #552

Merged
merged 4 commits into from Jun 3, 2023

Conversation

seanpile
Copy link
Contributor

@seanpile seanpile commented Jun 1, 2023

As of watchdog >= 2.3, file open events on certain platforms are causing an 'opened' event to be delivered. We should not be restarting the server on these changes, as they can be spammy and disruptive.

I was able to confirm the behaviour by running the tests within a debian-like environment (python slim bullseye); without the fix, the tests/test_watch.py would fail for the first test case (the evented observer)

For more context, see discussions here:

seanpile and others added 4 commits June 1, 2023 11:20
As of watchdog >= 2.3, file open events on certain platforms are causing
an 'opened' event to be delivered.  We should not be restarting the
server on these changes, as they can be spammy and disruptive.

I was able to confirm the behaviour by running the tests within a
debian-like environment (python slim bullseye); without the fix, the
`tests/test_watch.py` would fail for the first test case (the evented observer)
@Bogdanp Bogdanp merged commit 25d2fa6 into Bogdanp:master Jun 3, 2023
@Bogdanp
Copy link
Owner

Bogdanp commented Jun 3, 2023

Thanks!

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.

None yet

2 participants