Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port terminal culling from Notebook #438

Merged
merged 10 commits into from
Mar 10, 2021

Conversation

kevin-bates
Copy link
Member

This PR brings from notebook the following PRs to enable the culling of terminals:

Resolves #432

(Note: I was seeing intermittent CI failures in CI-setup and post-test phases (install examples). All failures were related to python installation issues and it felt like a repository was down or some kind of update was occurring since the issue would move around. Since these shouldn't be related, I'm moving forward with submitting the PR.)

kevin-bates and others added 9 commits March 5, 2021 09:43
This adds functionality to track a terminal's last activity and
optionally cull terminals that have been inactive for some specified
duration.
RTD is currently failing with an ImportError

Also move to a recent Python, because I don't know how long 3.5 will be available on conda.
* Restore detection of missing terminado package

* Properly handle terminals_enabled config

* Disambiguate terminado availability from web settings

* Further clarity on terminal availability

* Rename terminals_in_use back to terminals_available
@codecov-io
Copy link

codecov-io commented Mar 6, 2021

Codecov Report

Merging #438 (4f5f691) into master (36218db) will increase coverage by 0.17%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   77.63%   77.81%   +0.17%     
==========================================
  Files         105      106       +1     
  Lines        8964     9086     +122     
  Branches      956      968      +12     
==========================================
+ Hits         6959     7070     +111     
- Misses       1666     1669       +3     
- Partials      339      347       +8     
Impacted Files Coverage Δ
jupyter_server/terminal/api_handlers.py 87.50% <66.66%> (+13.97%) ⬆️
jupyter_server/serverapp.py 66.84% <68.42%> (+0.21%) ⬆️
jupyter_server/terminal/terminalmanager.py 85.89% <85.89%> (ø)
jupyter_server/tests/test_terminal.py 96.47% <97.29%> (+0.55%) ⬆️
jupyter_server/terminal/__init__.py 79.16% <100.00%> (-0.84%) ⬇️
jupyter_server/terminal/handlers.py 82.60% <100.00%> (-1.61%) ⬇️
jupyter_server/tests/services/kernels/test_api.py 97.05% <0.00%> (-1.97%) ⬇️
jupyter_server/services/kernels/handlers.py 58.51% <0.00%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36218db...4f5f691. Read the comment docs.

Copy link
Member

@Zsailer Zsailer left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @kevin-bates

@Zsailer Zsailer merged commit b0ffcf2 into jupyter-server:master Mar 10, 2021
@blink1073 blink1073 added this to the 1.5 milestone Mar 18, 2021
Zsailer added a commit to Zsailer/jupyter_server that referenced this pull request Nov 18, 2022
hMED22 pushed a commit to hMED22/jupyter_server that referenced this pull request Jan 23, 2023
…culling

Port terminal culling from Notebook
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.

terminals excluded from activity monitoring
5 participants