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

Method _cancel_monitor

mini_agent/tools/bash_tool.py:182–188  ·  view source on GitHub ↗

Cancel and remove a monitoring task (internal use only).

(cls, bash_id: str)

Source from the content-addressed store, hash-verified

180
181 @classmethod
182 def _cancel_monitor(cls, bash_id: str) -> None:
183 """Cancel and remove a monitoring task (internal use only)."""
184 if bash_id in cls._monitor_tasks:
185 task = cls._monitor_tasks[bash_id]
186 if not task.done():
187 task.cancel()
188 del cls._monitor_tasks[bash_id]
189
190 @classmethod
191 async def terminate(cls, bash_id: str) -> BackgroundShell:

Callers 1

terminateMethod · 0.80

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected