Commit Graph

6911 Commits

Author SHA1 Message Date
Min RK
a14fa9124a Merge pull request #157 from minrk/shutdown-without-cleanup
make shutdown of servers and proxy optional during Hub shutdown
2015-03-01 21:53:13 -08:00
Min RK
91d8a8efef cleanup_servers, _proxy helpstrings 2015-03-01 21:49:36 -08:00
Min RK
655b001c0c Merge pull request #159 from minrk/ipython-3
add IPython 3 to requirements
2015-02-28 14:32:03 -08:00
Min RK
12a796260f Merge pull request #158 from minrk/wait-spawners
give spawners a second to start in tests
2015-02-28 13:23:08 -08:00
Min RK
7fde5a6264 add IPython 3 to requirements
IPython 3 is released, so no longer need git URL
2015-02-28 13:22:06 -08:00
Min RK
e265452d16 give spawners a second to start in tests
avoids intermittent test failures when interpreter initialization catches the signal
instead of the inner loop
2015-02-28 13:19:53 -08:00
Min RK
d089f7433d add Shutdown Hub button to Admin page
with dialog and checkboxes for cleaning up servers and/or proxy
2015-02-28 12:20:45 -08:00
Min RK
ea4d5e22e5 Merge pull request #156 from minrk/coroutine-traceback
scrub repetitive gen.py, coroutine.py frames from coroutine tracebacks
2015-02-28 11:54:10 -08:00
Min RK
e39388f7a2 more logging during cleanup 2015-02-27 14:09:51 -08:00
Min RK
71ada39027 add /api/shutdown handler
POST /api/shutdown triggers clean shutdown.
URL parameters allow specifying whether servers and/or proxy should be cleaned up.
2015-02-27 14:09:30 -08:00
Min RK
daeb650228 add cleanup_proxy and cleanup_servers config
allows selective shutdown of just the Hub
without needing to shutdown with different signals.
2015-02-27 13:43:15 -08:00
Min RK
0439a3f79c scrub repetitive gen.py, coroutine.py frames from coroutine tracebacks
when logging exceptions
2015-02-27 13:19:18 -08:00
Min RK
7486f1f20d Merge pull request #151 from quantopian/log-file
Add support for logging to a file.
2015-02-24 17:57:27 -08:00
Scott Sanderson
228068b541 DEV: Don't override if a user has set a formatter. 2015-02-24 20:36:39 -05:00
Scott Sanderson
2a39fbe00a DEV: Allow a list of log handlers. 2015-02-23 09:51:28 -05:00
Scott Sanderson
17e4f2f2d1 DOC: Add help for extra_log_file and extra_log_handler. 2015-02-23 09:05:53 -05:00
Scott Sanderson
6fa51c770e DEV: Add support for logging to a file. 2015-02-22 22:35:18 -05:00
Min RK
1b63681199 Merge pull request #150 from minrk/running-fix
check user.running in delete handler
2015-02-19 20:38:03 +01:00
Min RK
5f1abf4461 check user.running in delete handler
missed a spot in #147
2015-02-19 20:36:02 +01:00
Min RK
d1d9b5763b Merge pull request #149 from minrk/routes.values
fix filter check in Proxy.check_routes
2015-02-11 12:02:26 -08:00
Min RK
7082ea60ee fix filter check in Proxy.check_routes
and test that check_routes works as intended
2015-02-11 11:17:01 -08:00
Min RK
edfb39c74c Merge pull request #148 from minrk/poke-proxy-api
add proxy API
2015-02-08 10:24:42 -08:00
Min RK
9e9c7c4b68 Merge pull request #147 from minrk/failed-spawn
prevent inconsistent state if Spawner.start fails
2015-02-08 10:23:39 -08:00
Min RK
b4980f1736 test inconsistent state if Spawner.start fails 2015-02-08 10:19:48 -08:00
Min RK
c82903b85e add 'pending' to user REST model 2015-02-08 10:19:48 -08:00
Min RK
088893e3dc cleanup HTTP server in JupyterHub.stop
and cleanup MockHub instance in between uses
2015-02-08 10:16:46 -08:00
Min RK
037fb66f2f test externally managed proxy
including stop/restart and new API url
2015-02-08 10:15:28 -08:00
Min RK
4fd58b2bf2 add proxy API
- GET fetches proxy table (relays same request to proxy's API endpoint)
- POST prods routing table sync (useful when proxy restarts)
- PATCH allows updating the proxy API location, auth token
2015-02-06 17:06:41 -08:00
Min RK
0dc3150762 add Proxy.check_routes
checks to ensure proxy table and user db are in sync

called on each last-activity check with the proxy (5 minutes)
2015-02-06 17:06:01 -08:00
Min RK
b5eda9d785 add User.running
as the one true way to check whether a user is running or not

User.running will be True if spawn or stop is pending.
2015-02-06 15:42:57 -08:00
Min RK
1fd139418a cleanup after any exception in spawn
not just timeouts
2015-02-06 14:47:14 -08:00
Min RK
d1c42f960c Merge pull request #145 from minrk/token-aliases
add common config aliases to token subcommand
2015-02-05 21:43:58 -08:00
Min RK
dd01a4ba99 add common config aliases to token subcommand
and load config from the file

allows `jupyterhub token -f configfile.py [user]`
2015-02-05 21:32:48 -08:00
Min RK
df8925a232 revert logo URL change
it just increased the number of redirects
2015-02-02 11:09:51 -08:00
Min RK
2c49bcb703 Merge pull request #144 from ckald/patch-1
Logo links to Hub home instead of user URL
2015-02-02 11:02:25 -08:00
Andrii Magalich
1a26351a8e {{base_url}} points to the user's home here, use {{prefix}} instead 2015-02-02 19:08:30 +01:00
Andrii Magalich
73ec94d3e0 Add "Hub" button to the header
Currently the Jupyter logo link brings us to the users' dashboard and there is no way to get to the initial screen (containing "Stop my server"/"My server"/"Admin" buttons)
2015-02-02 13:59:53 +01:00
Min RK
08f44b7feb Merge pull request #142 from minrk/admin-layout
admin page UI
2015-02-01 14:54:22 -08:00
Min RK
3acf8dd5b9 allow adding unsorted columns to admin via template blocks 2015-01-31 16:57:58 -08:00
Min RK
056cd0c246 show dialog when ajax requests fail 2015-01-31 16:57:57 -08:00
Min RK
e12dde371f set JSON header on JSON error replies 2015-01-31 16:57:57 -08:00
Min RK
98daa5409d don't reload page on server start/stop 2015-01-31 16:57:57 -08:00
Min RK
b99cb61a32 add user, running count to admin page 2015-01-31 16:57:57 -08:00
Min RK
425c870f47 allow sorting admin columns 2015-01-31 16:49:56 -08:00
Min RK
7c7aacef68 move add-user to top 2015-01-31 16:49:08 -08:00
Min RK
f2b818e685 Merge pull request #132 from minrk/admin-access
add JupyterHub.admin_access
2015-01-31 16:48:32 -08:00
Min RK
4e2b79a60f Merge pull request #135 from minrk/slow-stop
handle Spawners that are slow to stop
2015-01-31 16:47:56 -08:00
Min RK
3d57bd03e3 Merge pull request #129 from minrk/travis-container
containerized travis build
2015-01-31 16:47:27 -08:00
Min RK
ab23998f9c Merge pull request #143 from quantopian/non-async-add-user
DEV: Allow Authenticator.add_user to not be a future.
2015-01-30 09:45:57 -08:00
Scott Sanderson
b578e7527d DEV: Allow Authenticator.add_user to not be a future. 2015-01-30 12:30:28 -05:00