mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 21:13:01 +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(
|
||||
help="""
|
||||
An optional hook function that you can implement to do some bootstrapping work before
|
||||
the spawner starts. For example, create a directory for your user or load initial content.
|
||||
An optional hook function that you can implement to do some
|
||||
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 maybe a coroutine.
|
||||
|
||||
Example::
|
||||
|
||||
from subprocess import check_call
|
||||
|
Reference in New Issue
Block a user