Skip to content

refactor(server&agent-core): separate poll from heartbeat and optimize offline detection#82

Merged
Wolido merged 2 commits into
mainfrom
refactor/heartbeat-poll-separation
May 28, 2026
Merged

refactor(server&agent-core): separate poll from heartbeat and optimize offline detection#82
Wolido merged 2 commits into
mainfrom
refactor/heartbeat-poll-separation

Conversation

@Wolido
Copy link
Copy Markdown
Owner

@Wolido Wolido commented May 28, 2026

Changes

  • poll_handler: Removed database heartbeat write, now read-only for task polling
  • agent-core heartbeat: Interval reduced from 30s to 20s
  • server offline detection: Background check interval reduced from 30s to 10s
  • Design: Fixed timeout = 60s, heartbeat interval = 20s (T/3), check interval = 10s (T/6)
    • Tolerates 3 consecutive heartbeat failures before marking agent offline
    • Reduces max detection delay from ~90s to ~70s

… parameters

- Remove heartbeat update from poll_handler, making poll read-only
- Reduce agent-core heartbeat interval from 30s to 20s
- Reduce server offline detection interval from 30s to 10s
- Fixed timeout remains at 60s, allowing 3 heartbeat failures before marking offline
@Wolido Wolido changed the title refactor: separate poll from heartbeat and optimize offline detection refactor(server&agent-core): separate poll from heartbeat and optimize offline detection May 28, 2026
- server: 0.6.1 → 0.7.0
- agent-core: 0.3.1 → 0.4.0
@Wolido Wolido merged commit 4f66133 into main May 28, 2026
6 checks passed
@Wolido Wolido deleted the refactor/heartbeat-poll-separation branch May 28, 2026 02:12
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.

1 participant