mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
Document that pre_spawn_hook maybe a coroutine
This commit is contained in:
@@ -516,11 +516,14 @@ class Spawner(LoggingConfigurable):
|
|||||||
|
|
||||||
pre_spawn_hook = Any(
|
pre_spawn_hook = Any(
|
||||||
help="""
|
help="""
|
||||||
An optional hook function that you can implement to do some bootstrapping work before
|
An optional hook function that you can implement to do some
|
||||||
the spawner starts. For example, create a directory for your user or load initial content.
|
bootstrapping work before the spawner starts. For example, create a
|
||||||
|
directory for your user or load initial content.
|
||||||
|
|
||||||
This can be set independent of any concrete spawner implementation.
|
This can be set independent of any concrete spawner implementation.
|
||||||
|
|
||||||
|
This maybe a coroutine.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
from subprocess import check_call
|
from subprocess import check_call
|
||||||
|
Reference in New Issue
Block a user