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

Method close

examples/dirty_example/dirty_app.py:112–115  ·  view source on GitHub ↗

Cleanup on shutdown.

(self)

Source from the content-addressed store, hash-verified

110 return {"status": "unloaded", "name": name}
111
112 def close(self):
113 """Cleanup on shutdown."""
114 print(f"[MLApp] Shutting down. Total inferences: {self.inference_count}")
115 self.models.clear()
116
117
118class ComputeApp(DirtyApp):

Callers 9

test_ml_appFunction · 0.95
test_error_handlingFunction · 0.95
test_http2_connectionFunction · 0.45
test_priorityFunction · 0.45
test_trailersFunction · 0.45
test_combinedFunction · 0.45
test_multiple_streamsFunction · 0.45
test_async_communicationFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 9

test_ml_appFunction · 0.76
test_error_handlingFunction · 0.76
test_http2_connectionFunction · 0.36
test_priorityFunction · 0.36
test_trailersFunction · 0.36
test_combinedFunction · 0.36
test_multiple_streamsFunction · 0.36
test_async_communicationFunction · 0.36