Skip to content
Snippets Groups Projects
Commit 3f6b24a8 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

rename start_id

parent 6add0d41
Branches
Tags
No related merge requests found
......@@ -14,7 +14,7 @@ class SpawnEventsUnicoreAPIHandler(APIHandler):
def check_xsrf_cookie(self):
pass
async def post(self, unique_start_id, user_name, server_name=""):
async def post(self, start_id, user_name, server_name=""):
user = self.find_user(user_name)
if user is None:
self.set_status(404)
......@@ -25,9 +25,9 @@ class SpawnEventsUnicoreAPIHandler(APIHandler):
spawner = user.spawners[server_name]
if spawner.unique_start_id != unique_start_id:
if spawner.start_id != start_id:
self.log.warning(
f"{spawner._log_name} - Spawner unique start id ({spawner.unique_start_id}) does not match given id ({unique_start_id}). Do not update Spawner"
f"{spawner._log_name} - Spawner unique start id ({spawner.start_id}) does not match given id ({start_id}). Do not update Spawner"
)
self.set_status(400)
return
......
......@@ -525,12 +525,12 @@ class UnicoreSpawner(ForwardBaseSpawner):
] = f"{env['JUPYTERHUB_API_URL']}/users/{self.user.name}/activity"
# Add URL to receive UNICORE status updates
if self.unique_start_id:
if self.start_id:
url_parts = [
"users",
"progress",
"updateunicore",
self.unique_start_id,
self.start_id,
self.user.escaped_name,
]
if self.name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment