mirror of
https://github.com/django/django.git
synced 2025-03-29 18:50:46 +00:00
Ignored pywatchman.SocketTimeout in Watchman autoreloader.
Bumped minimum supported pywatchman version to 1.2.0. These exceptions don't require checking a server status.
This commit is contained in:
parent
8c5649bfb7
commit
29601bca9b
@ -506,6 +506,8 @@ class WatchmanReloader(BaseReloader):
|
|||||||
self.processed_request.clear()
|
self.processed_request.clear()
|
||||||
try:
|
try:
|
||||||
self.client.receive()
|
self.client.receive()
|
||||||
|
except pywatchman.SocketTimeout:
|
||||||
|
pass
|
||||||
except pywatchman.WatchmanError as ex:
|
except pywatchman.WatchmanError as ex:
|
||||||
self.check_server_status(ex)
|
self.check_server_status(ex)
|
||||||
else:
|
else:
|
||||||
|
@ -888,7 +888,8 @@ If you're using Linux or MacOS and install both `pywatchman`_ and the
|
|||||||
`Watchman`_ service, kernel signals will be used to autoreload the server
|
`Watchman`_ service, kernel signals will be used to autoreload the server
|
||||||
(rather than polling file modification timestamps each second). This offers
|
(rather than polling file modification timestamps each second). This offers
|
||||||
better performance on large projects, reduced response time after code changes,
|
better performance on large projects, reduced response time after code changes,
|
||||||
more robust change detection, and a reduction in power usage.
|
more robust change detection, and a reduction in power usage. Django supports
|
||||||
|
``pywatchman`` 1.2.0 and higher.
|
||||||
|
|
||||||
.. admonition:: Large directories with many files may cause performance issues
|
.. admonition:: Large directories with many files may cause performance issues
|
||||||
|
|
||||||
|
@ -368,6 +368,8 @@ Miscellaneous
|
|||||||
* The ``django-admin test -k`` option now works as the :option:`unittest
|
* The ``django-admin test -k`` option now works as the :option:`unittest
|
||||||
-k<unittest.-k>` option rather than as a shortcut for ``--keepdb``.
|
-k<unittest.-k>` option rather than as a shortcut for ``--keepdb``.
|
||||||
|
|
||||||
|
* Support for ``pywatchman`` < 1.2.0 is removed.
|
||||||
|
|
||||||
.. _deprecated-features-3.0:
|
.. _deprecated-features-3.0:
|
||||||
|
|
||||||
Features deprecated in 3.0
|
Features deprecated in 3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user