Min RK
a2f72da17f
Merge pull request #2963 from takluyver/shutdown-no-kernels
...
Config option to shut down server after N seconds with no kernels
8 years ago
Min RK
1deb0aec16
tornado 5: PeriodicCallback loop arg will be removed ( #3034 )
...
* tornado 5: PeriodicCallback loop arg will be removed
PCs are always run with the current eventloop,
which is what the explicitly passed loop always is for us already
* Don't double-close socket & stream
closing stream closes the socket
* remove now-inaccurate comment
8 years ago
Thomas Kluyver
bfe012e507
Merge pull request #2910 from mheilman/cull_idle_timeout_minimum
...
change cull_idle_timeout_minimum to 1 from 300
8 years ago
Thomas Kluyver
9ec57bfdf5
Config option to shut down server after N seconds with no kernels
8 years ago
Michael Heilman
b31194dfe3
removed extraneous cull_idle_timeout_minimum
8 years ago
Michael Heilman
f8ef573592
added warning about culling kernels with poor network connections
8 years ago
Min RK
e4186c47c0
allow disabling offline message buffering
...
escape hatch if the new buffering is causing anyone trouble
8 years ago
Michael Heilman
241c7e162c
change cull_idle_timeout_minimum to 1 from 500
8 years ago
Kyle Kelley
43a97807fc
buffer messages when websocket connection is interrupted ( #2871 )
...
* provide some top level comments
* implement buffering of messages on last dropped connection
- buffer is per-kernel
- session_key is stored because only a single session can resume the buffer and we can't be sure
- on any new connection to a kernel, buffer is flushed.
If session_key matches, it is replayed.
Otherwise, it is discarded.
- buffer is an unbounded list for now
* restore actual zmq channels when resuming connection
rather than establishing new connections
fixes failure to resume shell channel
* hookup restart callbacks in open
instead of in `create_stream`, which is not called on reconnect
* improve handling of restored connections in js
- dismiss 'connection lost' dialog on reconnect
- set busy status on reconnect (if not busy, idle will come soon after via kernel_ready)
8 years ago
dhirschf
6bb89b717a
Workaround for Windows Containers
...
On Windows `os.stat` treats host mapped volumes as broken symlinks
9 years ago
Peter Parente
c8ba55da21
Do not cull connected kernels by default
9 years ago
Peter Parente
85ba2bdabd
Fix help for cull_connected and cull_busy
9 years ago
Peter Parente
d9b4c99180
Do not cull kernels doing work by default
9 years ago
Peter Parente
1550a04848
Add cull_busy, cull_connected options
...
Additional logic to support culling or skipping kernels that are busy or
that have connections.
9 years ago
Min RK
f4d2c246d5
use dedicated Session for activity monitor
...
instead of re-using kernel.session, which can cause hash collisions if other objects use `kernel.session`.
9 years ago
Kevin Bates
ff19c4cd7c
enforce minimum timeout, ensure exceptions don't prevent culling of others
9 years ago
Kevin Bates
c3f753faf8
incorporate review recommendations
9 years ago
Kevin Bates
2f787088d5
Validate culling interval.
9 years ago
Kevin Bates
4000838321
Cull idle kernels after specified period
9 years ago
Min RK
8b76de80be
move tz utils to top-level private module ._tz
9 years ago
Min RK
9f55a857f3
use Z isoformat in UTC timestamps
...
instead of +00:00
9 years ago
Min RK
d45cb2ad80
track active kernel connections
9 years ago
Min RK
b472c55d9b
add activity watching to kernels
...
adds to kernel REST model:
- last_activity: datetime-aware timestamp
- execution_state: from last recorded status message
9 years ago
Sylvain Corlay
a91af4d642
Update traitlets API
10 years ago
Min RK
1c47a3dbb5
channel.closed is a method
...
since we weren't calling it, the restart channel was never closed,
causing process teardown to hang *sometimes*, depending on garbage collection.
10 years ago
Diego Mesa
482ed8a5a3
updating log.warn to log.warning
10 years ago
Min RK
6024f04698
allow some KernelManager methods to be async
...
Allows custom KernelManagers to do slower async operations as part of kernel startup/shutdown.
10 years ago
Min RK
0c5a3b6d04
wait for kernel to restart
...
in API request to restart kernels
by waiting for the kernel to respond to a kernel_info request.
10 years ago
Min RK
9f501ab5cd
get kernelspec info from kernelspecs
...
instead of adding display_name to the sessions model
10 years ago
Julien Rebetez
91d42c9600
Adds display_name to MappingKernelManager's kernel_model
10 years ago
Jason Grout
cf69ab7428
Use instances of traits instead of trait classes
11 years ago
Min RK
d71a59cc9f
s/jupyter_notebook/notebook
11 years ago