MCPcopy
hub / github.com/django/django / check_server_status

Method check_server_status

django/utils/autoreload.py:632–638  ·  view source on GitHub ↗

Return True if the server is available.

(self, inner_ex=None)

Source from the content-addressed store, hash-verified

630 super().stop()
631
632 def check_server_status(self, inner_ex=None):
633 """Return True if the server is available."""
634 try:
635 self.client.query("version")
636 except Exception:
637 raise WatchmanUnavailable(str(inner_ex)) from inner_ex
638 return True
639
640 @classmethod
641 def check_availability(cls):

Callers 4

update_watchesMethod · 0.95
tickMethod · 0.95

Calls 2

WatchmanUnavailableClass · 0.85
queryMethod · 0.80