mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-17 18:06:06 +00:00
fix: import
This commit is contained in:
@@ -333,7 +333,7 @@ class RuntimeMCPSession:
|
|||||||
|
|
||||||
async def _monitor_box_process_health(self):
|
async def _monitor_box_process_health(self):
|
||||||
"""Poll managed process status; return when process exits."""
|
"""Poll managed process status; return when process exits."""
|
||||||
from ...box.models import BoxManagedProcessStatus
|
from langbot.pkg.box.models import BoxManagedProcessStatus
|
||||||
|
|
||||||
session_id = self._build_box_session_id()
|
session_id = self._build_box_session_id()
|
||||||
consecutive_errors = 0
|
consecutive_errors = 0
|
||||||
@@ -345,9 +345,6 @@ class RuntimeMCPSession:
|
|||||||
else:
|
else:
|
||||||
status = getattr(info, 'status', '')
|
status = getattr(info, 'status', '')
|
||||||
if status == BoxManagedProcessStatus.EXITED.value or status == BoxManagedProcessStatus.EXITED:
|
if status == BoxManagedProcessStatus.EXITED.value or status == BoxManagedProcessStatus.EXITED:
|
||||||
self.ap.logger.info(
|
|
||||||
f'MCP monitor for {self.server_name}: process exited'
|
|
||||||
)
|
|
||||||
return
|
return
|
||||||
consecutive_errors = 0
|
consecutive_errors = 0
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|||||||
Reference in New Issue
Block a user