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

Method worker_class_str

gunicorn/config.py:107–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105
106 @property
107 def worker_class_str(self):
108 uri = self.settings['worker_class'].get()
109
110 if isinstance(uri, str):
111 # are we using a threaded worker?
112 is_sync = uri.endswith('SyncWorker') or uri == 'sync'
113 if is_sync and self.threads > 1:
114 return "gthread"
115 return uri
116 return uri.__name__
117
118 @property
119 def worker_class(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected