Min RK
59145ca0f7
fix deletion of named servers
...
first submitted to zero-to-jupyterhub
2018-08-01 10:07:02 +02:00
Richard Darst
4376224084
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
2018-05-02 01:11:29 +03:00
Richard Darst
6f9ea712de
Note cull-idle needs python3
...
- Closes : #1825
2018-04-26 16:30:51 +03:00
Richard Darst
9cd880fb35
cull_idle_servers.py: Remove f-string for py3.4 compatibility
2018-04-26 15:05:49 +03:00
Min RK
d89f2965cf
handle updated server models in culler
...
- servers sub-models model always defined in 0.9
- explicit 'ready' key added, use user.url fallback only when needed
2018-04-24 11:35:15 +02:00
Richard Darst
5f98801c99
cull_idle_servers.py: Don't try to delete non-running servers
...
- Only run the server handler if a server is actually running. A bug
could occur with non-named servers.
2018-04-17 13:52:13 +03:00
Richard Darst
9858a3db9d
cull_idle_servers.py: Fix problem when age/inactive undefined
...
- Sometimes the inactive or age can be undefined instead of timedelta.
Handle this case.
2018-04-17 13:51:40 +03:00
Min RK
312e7974d9
limit concurrency of cull requests
...
avoids simultaneous request for deletion of lots of users, which can slow down the Hub
2018-04-06 16:03:48 +02:00
Min RK
340a736722
use age instead of time cutoff
...
gets nicely formatted timedeltas in logging
instead of absolute times
2018-04-03 15:24:10 +02:00
Min RK
7bf93cb7e6
update cull_idle_servers for 0.9
...
- adds max-age
- handle named servers
- refactor culling a bit
2018-04-03 15:24:10 +02:00
Min RK
4fa9535fd4
get upstream changes from cull_idle_servers.py in zero-to-jupyterhub
2018-04-03 15:24:10 +02:00
Min RK
f9a90d2494
add —cull-users to cull_idle_servers
...
allows deleting idle users in addition to servers for temp-user cases such as binder/tmpnb
2017-08-30 10:31:44 +02:00
Min RK
140c4f2909
use services API in cull-idle example
2016-08-27 13:23:45 +02:00
Min RK
e59ba54173
add example script for culling idle servers
...
use case for `jupyterhub token`
2015-01-06 15:41:41 -08:00