diff --git a/unicorespawner/api_notifications.py b/unicorespawner/api_notifications.py index b08f623fda7915ddf8e87615538eb388b4f9497f..7959334b61b293353dc39bff70032703e46e1f6b 100644 --- a/unicorespawner/api_notifications.py +++ b/unicorespawner/api_notifications.py @@ -25,7 +25,8 @@ class SpawnEventsUnicoreAPIHandler(APIHandler): spawner = user.spawners[server_name] - if spawner.start_id != start_id: + if spawner.start_id and spawner.start_id != start_id: + # If the spawner has currently a start_id and it's different, then we don't forward the given update self.log.warning( f"{spawner._log_name} - Spawner unique start id ({spawner.start_id}) does not match given id ({start_id}). Do not update Spawner" )