This commit is contained in:
Max Murashov
2017-10-06 16:53:30 +03:00
parent 086b5daa53
commit 4b3920daba
3 changed files with 33 additions and 43 deletions

View File

@@ -142,9 +142,8 @@ class GunicornWorker(base.Worker):
)
if self.max_requests and req_count > self.max_requests:
self.alive = False
self.log.info(
"Max requests exceeded, shutting down: %s", self
)
self.log.info("Max requests exceeded, shutting down: %s",
self)
elif pid == os.getpid() and self.ppid != os.getppid():
self.alive = False
self.log.info("Parent changed, shutting down: %s", self)