MCPcopy
hub / github.com/ModelTC/LightLLM / has_latest_inference

Method has_latest_inference

lightllm/utils/health_check.py:54–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return self._is_health_checking
53
54 def has_latest_inference(self):
55 last_timemark = self.latest_success_infer_time_mark.get_value()
56 time_diff = time.time() - last_timemark
57 return time_diff < self.timeout
58
59
60health_obj = HealthObj()

Callers 1

health_checkFunction · 0.80

Calls 1

get_valueMethod · 0.80

Tested by

no test coverage detected