MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / cleanup

Method cleanup

src/hyperagent/build.py:76–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 _wait_for_ready(self._container)
75
76 def cleanup() -> None:
77 try:
78 container = client.containers.get(container_name)
79 container.stop()
80 except docker.errors.NotFound:
81 pass
82 atexit.unregister(cleanup)
83
84 if stop_container:
85 atexit.register(cleanup)

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected