Skip to content

Adding websocket heartbeat#333

Open
madAndroid wants to merge 5 commits into
actions:mainfrom
Daemon-Solutions:Add-Websocket-Heartbeat
Open

Adding websocket heartbeat#333
madAndroid wants to merge 5 commits into
actions:mainfrom
Daemon-Solutions:Add-Websocket-Heartbeat

Conversation

@madAndroid
Copy link
Copy Markdown

@madAndroid madAndroid commented Mar 31, 2026

@madAndroid madAndroid requested review from a team and nikola-jokic as code owners March 31, 2026 08:39
Copilot AI review requested due to automatic review settings April 22, 2026 13:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a WebSocket heartbeat around Kubernetes exec sessions to reduce premature termination / stalled connections in “kubernetes mode” runners (Issue #228).

Changes:

  • Introduces ping/pong heartbeat timers (configurable via env vars) for the exec WebSocket.
  • Adds WebSocket lifecycle cleanup (close-with-timeout) on success/failure paths.
  • Expands debug logging around execPodStep and heartbeat behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/k8s/src/k8s/index.ts Outdated
Comment thread packages/k8s/src/k8s/index.ts Outdated
Comment thread packages/k8s/src/k8s/index.ts Outdated
Comment thread packages/k8s/src/k8s/index.ts
Comment thread packages/k8s/src/k8s/index.ts Outdated
Comment thread packages/k8s/src/k8s/index.ts Outdated
@nikola-jokic
Copy link
Copy Markdown
Collaborator

Hey @madAndroid, can you please address reviews from Copilot? Comments do make sense to me ☺️

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@madAndroid
Copy link
Copy Markdown
Author

Thanks for taking a look at this @nikola-jokic :)

I've had Claude in VSCode review and provide suggested fixes to the review comments.

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.

3 participants