MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / terminate

Method terminate

mini_agent/tools/bash_tool.py:96–105  ·  view source on GitHub ↗

Terminate the background process.

(self)

Source from the content-addressed store, hash-verified

94 self.status = "running"
95
96 async def terminate(self):
97 """Terminate the background process."""
98 if self.process.returncode is None:
99 self.process.terminate()
100 try:
101 await asyncio.wait_for(self.process.wait(), timeout=5)
102 except asyncio.TimeoutError:
103 self.process.kill()
104 self.status = "terminated"
105 self.exit_code = self.process.returncode
106
107
108class BackgroundShellManager:

Callers 3

terminateMethod · 0.45
executeMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected