mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
make worker check_config method optionnal
This commit is contained in:
parent
e5f6b8024d
commit
eb485d2134
@ -135,7 +135,8 @@ class Arbiter(object):
|
||||
self.log.info("Using worker: %s", self.cfg.worker_class_str)
|
||||
|
||||
# check worker class requirements
|
||||
self.worker_class.check_config(self.cfg, self.log)
|
||||
if hasattr(self.worker_class, "check_config"):
|
||||
self.worker_class.check_config(self.cfg, self.log)
|
||||
|
||||
self.cfg.when_ready(self)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user