Rollin Thomas
8ee9869ca0
Add an example simple announcement service
2018-08-01 16:11:30 -07:00
Min RK
6cedd73d2a
Merge pull request #2062 from chaoleili/master
...
Ensure request uri with trailing slash
2018-08-01 10:17:58 +02:00
Chaolei Li
ab02f9c568
Ensure request uri with trailing slash
...
When request uri matching with base_url in PrefixRedirectHandler,
it's better to ensure uri with tariling slash. That's will avoid
redirecting /foobar to /foobar/hub/foobar.
2018-07-27 17:17:26 +08:00
Min RK
a2f003ed31
Merge pull request #2060 from betatim/docs-env-update
...
Update dependencies used by ReadTheDocs
2018-07-26 15:35:59 +02:00
Tim Head
7b6dd9f5cf
Update dependencies used by ReadTheDocs
2018-07-26 12:53:19 +02:00
Min RK
0fa5c20f89
Merge pull request #2042 from minrk/abort-failures
...
add Spawner.consecutive_failure_limit
2018-07-26 10:33:36 +02:00
Min RK
204399ee2c
Merge pull request #2040 from minrk/sigterm-fix
...
fix SIGTERM handling
2018-07-26 10:32:25 +02:00
Min RK
5e68dce02f
Merge pull request #2057 from adelcast/dev/adelcast/fix_pid_removal
...
proxy: make process existance check Windows friendly
2018-07-26 10:32:00 +02:00
Alejandro del Castillo
952bbea039
proxy: make process existance check Windows friendly
...
Currently, to check if the proxy is running, os.kill(pid,0) is used,
which doesn't work on Windows. Wrapped call into a new function that
adds a Windows case.
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-07-24 15:47:40 -05:00
Tim Head
630e85bfec
Merge pull request #2050 from Carreau/https
...
Switch protocols to https in docs links
2018-07-24 06:09:26 +01:00
Matthias Bussonnier
26f7bb51bd
Pin attrs to version greater than 17.4 or jsonschema 3.0.0a fails.
...
This is strange as JsonSchema already pin to higher than that.
2018-07-23 14:57:45 -07:00
Matthias Bussonnier
a1c2a50810
Switch protocols to https in docs links
...
Chrome will start to show insecure website for http next week
2018-07-22 18:58:22 -07:00
Min RK
906abcc2f3
add Spawner.consecutive_failure_limit
...
The Hub will exit if consecutive failure count reaches this threshold
Any successful spawn will reset the count to 0
useful for auto-restarting / self-healing deployments such as kubernetes/systemd/docker where restarting the Hub
default is disabled, since it would bring down the Hub if it’s not an auto-restarting deployment
2018-07-16 12:07:26 -07:00
Min RK
5269370e4a
fix SIGTERM handling
...
raise SystemExit on sigterm instead of calling atexit directly
- ensure fresh asyncio eventloop is created (not just IOLoop)
- makes cleanup more likely to run (one source of orphaned proxies)
2018-07-16 11:49:40 -07:00
Min RK
727356870a
Merge pull request #2027 from adelcast/dev/adelcast/fix_services_windows
...
_ServiceSpawner: add 'SYSTEMROOT' to environment if Windows
2018-07-13 13:24:49 -05:00
Alejandro del Castillo
39aed3a5a0
_ServiceSpawner: add 'SYSTEMROOT' to environment if Windows
...
Python 3 cannot be started without SYSTEMROOT environment variable.
Otherwise, CryptAcquireContext() is unable to find a dll.
https://bugs.python.org/issue20614
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-07-06 14:47:19 -05:00
Min RK
ed26578717
back to dev
2018-07-04 11:59:43 +02:00
Min RK
22863f765f
0.9.1
0.9.1
2018-07-04 11:55:42 +02:00
Min RK
b500bd002b
Merge pull request #2014 from willingc/bump-testing
...
add python 3.7 to travis
2018-07-04 11:02:55 +02:00
Carol Willing
aca40b24c3
remove env
2018-07-03 16:32:05 -07:00
Carol Willing
b5fe5a80c6
remove 3.7 from python list but leave in matrix
2018-07-03 14:57:58 -07:00
Carol Willing
ad073dd5dd
add 3.7 to travis matrix
2018-07-03 14:44:09 -07:00
Carol Willing
7b815558c6
Merge pull request #2021 from minrk/091-changes
...
Prepare changelog for 0.9.1
2018-07-03 14:27:01 -07:00
Min RK
55f58b3ba7
review, note proxy prefix fix
2018-07-03 15:12:30 +02:00
Min RK
e1f93a4721
Merge pull request #2009 from BerserkerTroll/patch-2
...
proxy.py: Respect base_url in add_hub_route
2018-07-03 13:36:48 +02:00
Min RK
2e95f3c039
Merge branch 'master' into patch-2
2018-07-03 13:29:54 +02:00
Min RK
b0ba51f209
host-based routing doesn't support wildcards
2018-07-03 12:27:24 +02:00
Min RK
89e6c2110e
add hub.routespec
...
this is the routespec for sending requests to the hub
It is [host]/prefix/ (not /hub/) so it receives all
requests, not just those destined for the hub
2018-07-03 12:05:21 +02:00
Min RK
7dfdc23b4e
Prepare changelog for 0.9.1
2018-07-03 11:44:37 +02:00
Min RK
4c7df53a8a
Merge pull request #2020 from weatherforce/master
...
Fix a couple of typos in the technical reference documentation
2018-07-03 11:23:36 +02:00
Alex Marandon
678afd3783
Fix a couple of typos
2018-07-03 11:16:55 +02:00
Carol Willing
0185a08f32
Merge pull request #2015 from minrk/allow_remote
...
disable host checking in upcoming notebook app
2018-07-02 08:45:41 -07:00
Tim Head
f3787dd2c8
Merge pull request #2016 from minrk/spawner-docs
...
mention get_env and get_args in spawner reference
2018-06-30 09:59:38 +02:00
Min RK
30f19cfc8c
mention get_env and get_args in spawner reference
...
these are important and usually required (especially get_env) for custom Spawner implementations
2018-06-29 14:46:08 +02:00
Min RK
a84fa38c6b
ensure prefix is on next_url in test_pages
2018-06-29 14:21:32 +02:00
Min RK
867ce4c213
use app.base_url in Proxy.check_routes
...
rather than assuming '/'
2018-06-29 14:19:20 +02:00
Min RK
005118e09d
disable upcoming host checking in single-user notebook application
2018-06-29 11:55:47 +02:00
Carol Willing
04ce67ee71
add python 3.7 to travis
2018-06-28 08:47:04 -07:00
Min RK
31807929cb
update test expectations for proxy state
...
expect app.base_url instead of unconditional ‘/‘
2018-06-27 12:46:13 +02:00
Min RK
cb4105b53e
Merge pull request #2012 from josemonsalve2/master
...
c.LocalProcessSpawner.shell_cmd configuration option does not work
2018-06-27 12:39:19 +02:00
Carol Willing
151887dd56
Merge pull request #2008 from minrk/services-localhost
...
managed services always talk to hub on localhost
2018-06-26 12:07:29 -07:00
Carol Willing
5f97487184
Merge pull request #2001 from minrk/auto-spawn-api
...
avoid triggering a spawn from API requests to a not-running server
2018-06-26 12:04:10 -07:00
Carol Willing
4d2d677777
Merge pull request #1996 from minrk/proxy-cleanup
...
use pid file to check for previous proxy instances
2018-06-26 12:02:54 -07:00
Jose M Monsalve Diaz
6a3b3807c9
fixing shell_cmd attribute of the LocalProcessSpawner that was not tag for configuration
2018-06-25 17:07:39 -04:00
Min RK
02a52a0289
Merge pull request #1997 from gesiscss/master
...
fix wrong/missing closing tags in templates
2018-06-25 12:54:36 +02:00
BerserkerTroll
7bd1e387df
proxy.py: Respect base_url in add_hub_route
2018-06-24 17:22:43 +03:00
Min RK
edc0d7901f
services always talk to hub on localhost
...
When the Hub listens on all ips by default, the connection ip is the hostname.
in some cases (e.g. certain kubernetes deployments) the hub’s container’s hostname is not connectable from itself, preventing managed services from connecting to the hub.
This ensures that managed service processes talk to the hub over localhost in this case, rather than via the hostname.
2018-06-22 13:48:34 +02:00
Min RK
8e561f1c12
avoid triggering a spawn from API requests to a not-running server
...
this avoids left-open notebook tabs from respawning a culled server indefinitely
2018-06-20 14:57:41 +02:00
Kenan Erdogan
24d87c882f
fix wrong/missing closing tags in templates
2018-06-19 09:15:18 +02:00
Min RK
1e333e2f29
Merge pull request #1992 from willingc/doc-toc
...
add templates and user env docs to home page index
2018-06-18 15:45:52 +02:00