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

Method load_apps

gunicorn/dirty/worker.py:210–225  ·  view source on GitHub ↗

Load all configured dirty apps.

(self)

Source from the content-addressed store, hash-verified

208 self._server.close()
209
210 def load_apps(self):
211 """Load all configured dirty apps."""
212 try:
213 self.apps = load_dirty_apps(self.app_paths)
214 for path, app in self.apps.items():
215 self.log.debug("Loaded dirty app: %s", path)
216 try:
217 app.init()
218 self.log.info("Initialized dirty app: %s", path)
219 except Exception as e:
220 self.log.error("Failed to initialize dirty app %s: %s",
221 path, e)
222 raise
223 except Exception as e:
224 self.log.error("Failed to load dirty apps: %s", e)
225 raise
226
227 def run(self):
228 """Run the main asyncio event loop."""

Calls 6

load_dirty_appsFunction · 0.85
itemsMethod · 0.80
debugMethod · 0.45
initMethod · 0.45
infoMethod · 0.45
errorMethod · 0.45