mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2475 from m2p-consulting/log-killed
Log a warning when a worker was terminated due to a signal
This commit is contained in:
commit
7ca05ec4e1
@ -526,6 +526,12 @@ class Arbiter(object):
|
||||
if exitcode == self.APP_LOAD_ERROR:
|
||||
reason = "App failed to load."
|
||||
raise HaltServer(reason, self.APP_LOAD_ERROR)
|
||||
if os.WIFSIGNALED(status):
|
||||
self.log.warning(
|
||||
"Worker with pid %s was terminated due to signal %s",
|
||||
wpid,
|
||||
os.WTERMSIG(status)
|
||||
)
|
||||
|
||||
worker = self.WORKERS.pop(wpid, None)
|
||||
if not worker:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user