(data)
| 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', |
nothing calls this directly
no test coverage detected