Commit Graph

394 Commits

Author SHA1 Message Date
Min RK
4616e42ca6 die on failed startup
when init, start were made async, the eventloop would continue to run after an exception
2015-03-06 16:28:31 -08:00
Min RK
b6ab62ae3a Merge pull request #176 from minrk/sigterm
cleanup after SIGTERM
2015-03-05 10:50:03 -08:00
Min RK
1e8f3e9448 cleanup after SIGTERM 2015-03-05 10:42:05 -08:00
Min RK
cfce35c0c6 don't need to walk npm bin dirs
use node_modules/.bin
2015-03-05 10:21:42 -08:00
Min RK
ac2225cb99 Merge pull request #173 from minrk/nope-npm
don't pretend `npm install -g` works
2015-03-05 10:15:13 -08:00
Min RK
7930d81d0c don't pretend npm install -g works
install configurable-http-proxy

because dependencies aren't installed anywhere on PATH
2015-03-05 10:12:52 -08:00
Min RK
5da557622d Merge pull request #171 from quantopian/configure-http-timeout
DEV: Make the timeout used by wait_for_http_server configurable.
2015-03-04 22:11:56 -08:00
Scott Sanderson
0c3bce8b57 DEV: Make the timeout used by wait_for_http_server configurable. 2015-03-04 23:37:30 -05:00
Min RK
f741240634 Merge pull request #170 from minrk/npm
install js dependencies with npm
2015-03-04 17:27:05 -08:00
Min RK
9cbf30dfb9 use npm install in Dockerfile 2015-03-04 16:56:06 -08:00
Min RK
058b7c68c9 install js dependencies with npm
add package.json

- devDependencies (less, bower) installed locally
- dependencies installed globally (configurable-http-proxy)
2015-03-04 16:55:29 -08:00
Min RK
501d6752b6 don't exclude bower components from sdists 2015-03-04 16:55:28 -08:00
Min RK
8043abc461 Merge pull request #161 from minrk/extra_args
add Spawner.args
2015-03-04 15:45:16 -08:00
Min RK
74fb2e6a05 Merge pull request #163 from minrk/clean-css
use `lessc --clean-css`
2015-03-04 15:44:59 -08:00
Min RK
94180d1c6c Merge pull request #166 from minrk/debug-proxy
add JupyterHub.debug_proxy
2015-03-04 15:30:39 -08:00
Min RK
c48793c77c Merge pull request #162 from minrk/sdist
prepare for sdist
2015-03-04 15:30:25 -08:00
Min RK
059d081a79 prepare for sdist
- trigger js/css before sdist (always)
- trigger js/css before build_py (part of wheel, install) iff installing from repo

should avoid running js, css from sdist
2015-03-04 15:21:51 -08:00
Min RK
5c54792687 Merge pull request #169 from minrk/user-stop
Don't schedule user stop before removing from proxy
2015-03-04 15:21:38 -08:00
Min RK
f8fc7fb174 Merge pull request #167 from minrk/depend-ipython
don't depend on ipython[notebook] in requirements.txt
2015-03-04 14:57:38 -08:00
Min RK
288e361ae6 Don't schedule user stop before removing from proxy
user.stop clears user.server, which proxy.delete_user uses

scheduling user.stop first creates a race where user.server is None when it's removed from the proxy.
2015-03-04 14:54:38 -08:00
Min RK
4f3fcb92da add JupyterHub.debug_proxy 2015-03-04 14:42:39 -08:00
Min RK
ecd27d00ac install clean-css on travis 2015-03-04 14:41:13 -08:00
Min RK
506e0e569c use lessc --clean-css
instead of deprecated `lessc -x`
2015-03-04 14:40:37 -08:00
Min RK
177f519f50 Merge pull request #168 from minrk/scoped-session
use scoped session
2015-03-04 14:39:54 -08:00
Min RK
1c3102fd0a restore db echo in tests
while we are having weird db failures
2015-03-04 14:14:46 -08:00
Min RK
dfa8b601d1 use scoped session
doesn't actually matter for real usage,
but may help in multi-threaded tests
2015-03-04 14:14:03 -08:00
Min RK
5a962c3aac Merge pull request #165 from minrk/connectable-host
make host connectable when ip is empty
2015-03-04 12:48:02 -08:00
Min RK
0414a0be0d don't depend on ipython[notebook] in requirements.txt
it's not always required that the notebook server run in the same env (docker, etc.),
and non-setuptools installs of ipython (e.g. conda)
prevent extras from being defined.
2015-03-04 12:28:20 -08:00
Min RK
c991438c3d make host connectable when ip is empty
turn '' into 'localhost', so that it is a valid URL for connection
2015-03-04 12:13:06 -08:00
Min RK
09b27ca44d Merge pull request #160 from minrk/default-spawner-ip
make spawner IP configurable
2015-03-02 17:48:57 -08:00
Min RK
f81d4ba44c update tests with new default server ip ('')
and verify that starting a Spawner sets ip to localhost
2015-03-02 16:48:21 -08:00
Min RK
8ae0109322 make spawner IP configurable
mainly for localhost->127.0.0.1 config in pathological cases
2015-03-02 16:48:21 -08:00
Min RK
162a6a0ba7 add Spawner.args
easy access to specify extra args for `ipython notebook`
2015-03-02 16:46:03 -08:00
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