nebari-dev / nebari-dev/data-science-pack
[ENH] - VS Code prevents JHub idle culler trigger
@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/heartbeatonce 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 anCODE_SERVER_IDLE_TIMEOUT_SECONDSenvironment 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.