Skip to content

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

Merged
Bogdanp merged 4 commits into
Bogdanp:masterfrom
seanpile:watchdog-fixes
Jun 3, 2023
Merged

Bogdanp merged 4 commits into
Bogdanp:masterfrom
seanpile:watchdog-fixes

Conversation

@seanpile

@seanpile seanpile commented Jun 1, 2023

Copy link
Copy Markdown
Contributor

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

Bogdanp commented Jun 3, 2023

Copy link
Copy Markdown
Owner

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.

2 participants