From b096dfca429a77089e3dc5bfcebcddb399a9e9d7 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 27 Nov 2023 14:55:33 +0100 Subject: [PATCH] Enhance comment following review --- .../backend/src/routes/requested_tasks/requested_task.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dispatcher/backend/src/routes/requested_tasks/requested_task.py b/dispatcher/backend/src/routes/requested_tasks/requested_task.py index 6efd6323..77fbd043 100644 --- a/dispatcher/backend/src/routes/requested_tasks/requested_task.py +++ b/dispatcher/backend/src/routes/requested_tasks/requested_task.py @@ -238,9 +238,9 @@ def get(self, session: so.Session, token: AccessToken.Payload): ) worker.last_ip = worker_ip - # commit explicitely since we are not using an explicit transaction, - # and do it before calling Wasabi so that changes are propagated - # quickly and transaction is not blocking + # commit explicitely last_ip and last_seen changes, since we are not + # using an explicit transaction, and do it before calling Wasabi so + # that changes are propagated quickly and transaction is not blocking session.commit() if ip_changed: