MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / update_status

Method update_status

mini_agent/tools/bash_tool.py:88–94  ·  view source on GitHub ↗

Update process status.

(self, is_alive: bool, exit_code: int | None = None)

Source from the content-addressed store, hash-verified

86 return new_lines
87
88 def update_status(self, is_alive: bool, exit_code: int | None = None):
89 """Update process status."""
90 if not is_alive:
91 self.status = "completed" if exit_code == 0 else "failed"
92 self.exit_code = exit_code
93 else:
94 self.status = "running"
95
96 async def terminate(self):
97 """Terminate the background process."""

Callers 1

monitorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected