Skip to content

Conversation

@chvvkumar
Copy link
Owner

@chvvkumar chvvkumar commented Jan 6, 2026

📋 Overview

This pull request addresses a bug in alpaca/device.py where the client connection duration timer was incorrectly resetting every second instead of displaying the connected duration. It improves client management by separating the tracking of initial connection times from last heartbeat timestamps. This ensures accurate monitoring of client activity and proper identification and pruning of stale connections.

🔄 Changes by Category

  • Bug Fixes:
    • Fixed the client connection duration timer from resetting every second.
    • Separated client connection start time from last heartbeat tracking to ensure accurate duration.
    • Implemented a client_last_seen dictionary for precise heartbeat timestamp management.
    • Adjusted register_heartbeat to update only the last seen timestamp, preserving the original connection start time.
    • Updated _prune_stale_clients to utilize the last_seen timestamp for detecting and removing timed-out clients.

📊 Analyzed 8 commit(s) | 🕐 Updated: 2026-01-06T18:44:14.780Z | Generated by GitHub Actions


- Separate connection start time from last heartbeat tracking

- Add client_last_seen dictionary for heartbeat timestamps

- Fix register_heartbeat to only update last_seen, preserving connection start time

- Update _prune_stale_clients to use last_seen for timeout detection

- Fix workflow cache move step to check directory existence

- Add workspace cleanup step to fix permission issues
Resolve client connection duration and heartbeat tracking issues
- Add workspace cleanup step to fix permission issues

- Add directory existence check in cache move step

- Same fixes applied to snd.yml earlier
@github-actions github-actions bot changed the title Dev Resolve client connection duration and heartbeat tracking issues Jan 6, 2026
@chvvkumar chvvkumar changed the title Resolve client connection duration and heartbeat tracking issues Bugfix: Fix client connection duration display in UI Jan 6, 2026
@chvvkumar chvvkumar merged commit 26d6916 into main Jan 6, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants