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

Method notify

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

Source from the content-addressed store, hash-verified

45 self.sockets = sockets
46
47 def notify(self):
48 super().notify()
49 if self.ppid != os.getppid():
50 self.log.info("Parent changed, shutting down: %s", self)
51 sys.exit(0)
52
53 def timeout_ctx(self):
54 return gevent.Timeout(self.cfg.keepalive, False)

Callers 1

runMethod · 0.95

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected