Add post-spawn hook

This commit is contained in:
James Curtin
2018-05-04 19:56:34 -04:00
parent 10ea92dcea
commit 2f3f8d7826
4 changed files with 32 additions and 3 deletions

View File

@@ -559,6 +559,8 @@ class User:
finally:
spawner.orm_spawner.started = None
self.db.commit()
# trigger post-spawner hook
await maybe_future(spawner.run_post_spawn_hook())
# trigger post-spawner hook on authenticator
auth = spawner.authenticator
try: