MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / term_input

Function term_input

webapp_modern.py:14346–14354  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

14344 'time_since_last_sync': time.time() - getattr(shared_data, 'last_sync_timestamp', 0) if hasattr(shared_data, 'last_sync_timestamp') else 'UNKNOWN'
14345 }
14346
14347 # === BACKGROUND THREAD HEALTH ===
14348 debug_info['background_thread_health'] = {
14349 'sync_thread': {
14350 'last_run': background_thread_health.get('sync_last_run', 0),
14351 'last_run_ago_seconds': time.time() - background_thread_health.get('sync_last_run', 0) if background_thread_health.get('sync_last_run', 0) > 0 else 'NEVER',
14352 'alive': background_thread_health.get('sync_alive', False),
14353 'status': '✅ HEALTHY' if background_thread_health.get('sync_alive', False) else '⚠️ POSSIBLY STUCK'
14354 },
14355 'arp_thread': {
14356 'last_run': background_thread_health.get('arp_last_run', 0),
14357 'last_run_ago_seconds': time.time() - background_thread_health.get('arp_last_run', 0) if background_thread_health.get('arp_last_run', 0) > 0 else 'NEVER',

Callers

nothing calls this directly

Calls 4

_term_cleanupFunction · 0.85
getMethod · 0.45
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected