From b20ead2232f99356fe942fed5724174308a48f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enol=20Fern=C3=A1ndez?= Date: Mon, 25 Nov 2024 14:59:31 +0000 Subject: [PATCH] Add pre_spawn_hook method again (#151) --- egi_notebooks_hub/egispawner.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/egi_notebooks_hub/egispawner.py b/egi_notebooks_hub/egispawner.py index 9a61341..5b1117e 100644 --- a/egi_notebooks_hub/egispawner.py +++ b/egi_notebooks_hub/egispawner.py @@ -206,3 +206,10 @@ def _profile_filter(self, spawner): if not profile_vos or any(i in groups for i in profile_vos): profile_list.append(profile) return profile_list + + async def pre_spawn_hook(self, spawner): + """ + Do actions before spawning. + This is for now empty to ensure compability with the existing child spawners + """ + pass