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

Method close

examples/celery_alternative/tasks.py:477–481  ·  view source on GitHub ↗

Cleanup on shutdown.

(self)

Source from the content-addressed store, hash-verified

475 }
476
477 def close(self):
478 """Cleanup on shutdown."""
479 self.cache.clear()
480 if self.db_connection and self.db_connection != "connected":
481 self.db_connection.close()
482
483
484class ScheduledWorker(DirtyApp):

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected