🔧 Update files
This commit is contained in:
parent
6c9036b573
commit
a59e438bc8
2 changed files with 4 additions and 7 deletions
Binary file not shown.
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue