nebari-dev / nebari-dev/data-science-pack

[ENH] - VS Code prevents JHub idle culler trigger

Open
#208 5 comments 0 reactions 1 assignee View on GitHub

@tylerpotts is already working on this.

Since Aug 19, 2026.

Dominant language
Python
Stars
5
Forks
7
Avg merge
1d 20h
Merged PRs (30d)
13

Description

Feature description

If you have VS Code open, the heartbeat function artificially creates network activity on JHub which prevents the idle culler from ever kicking in. In the current setup, VS Code never idles out on it own. This means that JHub will kept alive as long a user has VS Code open in their browser. This can get very very expensive.

We did some initial looking at this and this documentation indicates

As long as there is an active browser connection, code-server touches ~/.local/share/code-server/heartbeat once a minute.
If you want to shutdown code-server if there hasn't been an active connection after a predetermined amount of time, you can use the --idle-timeout-seconds flag or set an CODE_SERVER_IDLE_TIMEOUT_SECONDS environment variable.

The potential solution we've identified was to use the CODE_SERVER_IDLE_TIMEOUT_SECONDS  and make it match our idle culling settings instead of disabling the heartbeat itself.

Value and/or benefit

Reduced costs, proper idle culling behavior

Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.