🔧 Update files

This commit is contained in:
Lilith 2026-01-09 10:49:26 -08:00
parent 6c9036b573
commit a59e438bc8
2 changed files with 4 additions and 7 deletions

View file

@ -383,19 +383,16 @@ class CommitDaemon:
health = await self.service_manager.check_health()
self._service_health = health
if health == ServiceHealth.CRASHED:
self._service_crashed = True
logger.error("Llama service has crashed - commits disabled")
return False
if health == ServiceHealth.UNREACHABLE:
logger.info("Llama service unreachable, attempting to start...")
if health == ServiceHealth.CRASHED or health == ServiceHealth.UNREACHABLE:
status_msg = "crashed (stale PID)" if health == ServiceHealth.CRASHED else "unreachable"
logger.info(f"Llama service {status_msg}, attempting to start...")
started = await self.service_manager.ensure_service_available()
if started:
self._service_crashed = False
self._service_health = ServiceHealth.HEALTHY
return True
else:
self._service_crashed = True
logger.error("Failed to start llama service")
return False