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

Method init

examples/celery_alternative/tasks.py:53–55  ·  view source on GitHub ↗

Called once when worker starts - establish SMTP connection.

(self)

Source from the content-addressed store, hash-verified

51 self.last_connected = None
52
53 def init(self):
54 """Called once when worker starts - establish SMTP connection."""
55 self._connect_smtp()
56
57 def _connect_smtp(self):
58 """Establish SMTP connection (simulated for demo)."""

Callers

nothing calls this directly

Calls 1

_connect_smtpMethod · 0.95

Tested by

no test coverage detected