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:
Richard Darst
2018-05-01 11:40:22 +03:00
parent a9fe88c343
commit 4376224084

View File

@@ -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`
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