mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
cull_idle_servers: Add note about running with different timeouts
- Instead of creating many options for different timeouts of users and servers, just add a note that the whole culler can be run multiple times with different options. See discussion in #1834. - Closes: #1834
This commit is contained in:
@@ -24,6 +24,12 @@ Or run it manually by generating an API token and storing it in `JUPYTERHUB_API_
|
|||||||
|
|
||||||
export JUPYTERHUB_API_TOKEN=`jupyterhub token`
|
export JUPYTERHUB_API_TOKEN=`jupyterhub token`
|
||||||
python3 cull_idle_servers.py [--timeout=900] [--url=http://127.0.0.1:8081/hub/api]
|
python3 cull_idle_servers.py [--timeout=900] [--url=http://127.0.0.1:8081/hub/api]
|
||||||
|
|
||||||
|
This script uses the same ``--timeout`` and ``--max-age`` values for
|
||||||
|
culling users and users' servers. If you want a different value for
|
||||||
|
users and servers, you should add this script to the services list
|
||||||
|
twice, just with different ``name``s, different values, and one with
|
||||||
|
the ``--cull-users`` option.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
|
Reference in New Issue
Block a user