Min RK
fb3bc95623
Remove expunges from startup
2018-02-06 12:04:14 +01:00
Min RK
c8b4cab022
support getting user models from orm-only User objects
...
avoids instantiating User wrappers for inactive users in get_all_users
2018-02-06 12:04:14 +01:00
Min RK
06fb94b4ea
Delay instantiation of User and Spawner objects
...
Avoids instantiating too many objects before they are used
- deletes Spawner instances after they stop to avoid lingering instances
- use user_dict cache more often instead of db queries
- check for empty spawners dict to avoid a few Spawner instantiations
2018-02-06 12:04:14 +01:00
Robert Schroll
9f6cef4fb4
Add option to redirect to running Jupyter server
...
This is how the system used to behave, but now it can be turned off, always
showing the control panel on login. Adjustment is needed in two places.
2018-02-05 18:12:07 -08:00
Min RK
0315dd5612
avoid instantiating idle Spawner objects during startup
...
only instantiate Spawners when they are requested
2018-02-02 00:22:47 +01:00
Min RK
e4e5bebc1a
Merge pull request #1638 from minrk/404-ok
...
avoid raising on 404 deleting proxy route
2018-02-01 21:32:52 +01:00
Min RK
c688e9ebad
avoid raising on 404 deleting proxy route
...
deleting a route that doesn't exist should only warn, not error
2018-02-01 20:18:13 +01:00
Min RK
6d6041a3c1
parallelize startup poll
...
puts each check for a running spawner in a coroutine and runs them all concurrently.
Note: this will only improve performance when a large number of Spawners are running and `yield spawner.poll()` takes a nontrivial amount of time.
This is because these are coroutines, not threads. If instantiating Spawners themselves takes a long time, performance will not be affected.
2018-02-01 20:17:47 +01:00
Min RK
dde7b5ea68
Merge pull request #1642 from minrk/tornado-5-b
...
Fixes for tests with tornado 5
2018-02-01 19:57:59 +01:00
Min RK
9bf533b340
fixes when tests are run on asyncio
...
- need to explicitly instantiate asyncio eventloops in background threads
- remove some now-obsolete initialized checks in teardown
2018-02-01 14:56:40 +01:00
Min RK
f1a105abec
register tornado's asyncio support at launch time, not import time
...
avoids other imports from overriding this
2018-02-01 14:49:55 +01:00
Carol Willing
e6587b5dc8
Merge pull request #1631 from minrk/bumps
...
bump jupyterhub version to 0.9.0.dev
2018-01-24 08:17:54 -08:00
Min RK
b2ad045a2d
update docker build hooks
...
stable is 0.8 (and has been for some time now)
2018-01-24 16:50:49 +01:00
Min RK
89734d8c5f
master is 0.9.0.dev
...
now that we've started making db changes
2018-01-24 16:46:46 +01:00
Min RK
53736099ba
specify extra_log_file encoding as utf8
...
even if locale is ascii
extra_log_file can fail with encoding errors, where stdout logging will escape safely.
2018-01-22 07:39:09 +01:00
Carol Willing
2fcfa136c1
Merge pull request #1625 from jupyterhub/ellisonbg-patch-1
...
Remove unicode character in favor of plain ->
2018-01-18 15:40:05 -08:00
Brian E. Granger
9f85209a1b
Remove unicode character in favor of plain ->
...
This is still causing problems in all fresh deployments we are doing. I am fine with another solution, but at least wanted to proposed this as a fix for now.
2018-01-18 12:31:17 -08:00
Carol Willing
cea1b2fd4d
Merge pull request #1623 from BerserkerTroll/patch-1
...
Fix Authentication state documentation
2018-01-17 09:28:22 -08:00
BerserkerTroll
312252b670
Fix Authentication state documentation
...
This — is how it actually works!
2018-01-17 05:45:47 +03:00
Min RK
4d6b30c17b
Merge pull request #1621 from consideRatio/master
...
Fix spawner/service typo in proxy.py
2018-01-13 13:20:44 -08:00
Erik Sundell
0beb9c2670
fix spawner/service typo in proxy.py
2018-01-13 21:43:09 +01:00
Min RK
a0289af59f
Merge pull request #1615 from yuvipanda/hub_connect_ip
...
Add note about hub_connect_ip restrictions
2018-01-12 17:38:16 -08:00
Carol Willing
40363834c8
Merge pull request #1619 from timfreund/linkupdate
...
Update docker volumes link
2018-01-12 09:08:47 -08:00
Tim Freund
0c9e5fd10b
Update docker volumes link
...
The old link now returns 404.
2018-01-11 21:28:24 -05:00
yuvipanda
3d90e5cdf6
Add note about hub_connect_ip restrictions
...
Kubernets Ingress Proxy requires IPs, and I suspect other
proxies in the future might have DNS restrictions too.
This causes confusion, in cases like
https://github.com/jupyterhub/kubespawner/issues/116 .
2018-01-10 18:35:58 -08:00
Robert Schroll
8e3f1f0955
Add a block around the message in the spawn_pending page
...
This makes it easier for users to add or substitute custom messages on
this page.
2018-01-04 15:34:59 -08:00
Robert Schroll
7c64415096
Add base_template option
...
If true, the user can have custom templates (specified in
template_paths) that extend the default templates, by referencing them
as "BASE:filename.html". This makes it easier to add information to
exising templates.
2018-01-04 15:34:59 -08:00
Min RK
e3fd1dba0e
Merge pull request #1609 from minrk/tornado-5
...
tornado 5 fixes
2018-01-03 18:24:07 +01:00
Min RK
9866a0fadc
avoid raising HTTPError in get_current_user
...
it can cause issues, e.g. with upcoming notebook releases .get_current_user may be called in set_default_headers,
which doesn't catch HTTPErrors.
2018-01-03 14:58:42 +01:00
Min RK
f87f24d9e5
unpin tornado
2018-01-03 14:12:29 +01:00
Min RK
4729ae4769
tornado 5 fixes
...
- ._running private attribute is removed. We don't need it anymore,
since we were only using it while the application was run in a background thread.
- call blocking cleanup in a thread because asyncio doesn't allow multiple loops in one thread.
2018-01-03 14:12:23 +01:00
Min RK
691c4c158f
Merge pull request #1606 from willingc/test-readme
...
Add CHP to dev install and move to CONTRIBUTING
2018-01-03 11:52:27 +01:00
Carol Willing
3c597339ba
Add CHP to dev install and move to CONTRIBUTING
2018-01-03 11:52:01 +01:00
Min RK
e5fe174e03
Merge pull request #1607 from willingc/travis-tornado
...
pin tornado requirement to less than 5.0
2018-01-03 11:50:18 +01:00
Carol Willing
1c25a9d026
pin tornado requirement to less than 5.0
2018-01-02 15:19:35 -08:00
Min RK
2db378e9c1
Merge pull request #1577 from minrk/session-cookie
...
add session-id cookie
2017-12-19 15:18:02 +01:00
Min RK
a4067ee681
clarify alembic's autogenerated comments [ci skip]
...
with reformatting
2017-12-19 15:13:44 +01:00
Min RK
edb0831028
check for table before upgrading
...
avoids raising error, which aborts transactions on postgres
2017-12-19 14:19:49 +01:00
Min RK
dac3b0a6f5
clear cookies for the right domain
2017-12-19 11:05:02 +01:00
Min RK
9a180cc8ad
relax failed-upgrade check
...
since each backend raises a different error, only check that the errors are the same.
2017-12-19 10:54:05 +01:00
Min RK
e81764610e
Merge pull request #1588 from willingc/doc-spawner
...
Clarify resource limits/guarantees in docs and docstrings
2017-12-19 10:50:04 +01:00
Carol Willing
e4e2b627fe
add formatting to clarify spawners' limits
2017-12-18 04:43:26 -08:00
Carol Willing
ec55f56725
clarify resource limits in docstrings
2017-12-18 04:33:41 -08:00
Carol Willing
1e4f871bcc
update documentation on resource limits
2017-12-18 04:33:01 -08:00
Matthias Bussonnier
69f72919bd
Merge pull request #1587 from darky2004/master
...
Request to add a new JupyterHub service provider
2017-12-15 21:20:32 +01:00
darky2004
dc0336fa45
Update gallery-jhub-deployments.md
2017-12-13 20:36:04 +00:00
darky2004
8c341d262e
Update gallery-jhub-deployments.md
2017-12-13 20:35:34 +00:00
Min RK
2b15464e12
make add_columns conditional on table presence
...
in database upgrade.
For multi-version upgrades (e.g. 0.7 -> 0.9)
2017-12-12 14:38:06 +01:00
Min RK
a686235ffb
alembic: add target_metadata
...
needed for `python -m jupyterhub.dbutil revision --autogenerate -m 'note'`
2017-12-12 10:54:08 +01:00
Min RK
29171a4d05
test logout
...
verify that:
1. auth is cached
2. oauth tokens are revoked on logout
3. clearing session id avoids cached auth data
2017-12-11 14:20:25 +01:00