MCPcopy
hub / github.com/benoitc/gunicorn / watchdog

Method watchdog

gunicorn/workers/gtornado.py:45–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 self.alive = False
44
45 def watchdog(self):
46 if self.alive:
47 self.notify()
48
49 if self.ppid != os.getppid():
50 self.log.info("Parent changed, shutting down: %s", self)
51 self.alive = False
52
53 def heartbeat(self):
54 if not self.alive:

Calls 2

notifyMethod · 0.45
infoMethod · 0.45