MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / heartbeat

Function heartbeat

pkg/pypi/src/codebase_memory_mcp/_cli.py:1506–1512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1504 heartbeat_errors = []
1505
1506 def heartbeat():
1507 while not stop.wait(_RUNTIME_LOCK_HEARTBEAT_SECONDS):
1508 try:
1509 _refresh_runtime_lock(lock)
1510 except Exception as exc: # surfaced on the launcher thread
1511 heartbeat_errors.append(exc)
1512 return
1513
1514 try:
1515 _refresh_runtime_lock(lock)

Callers

nothing calls this directly

Calls 2

_refresh_runtime_lockFunction · 0.85
waitMethod · 0.80

Tested by

no test coverage detected