From e90193ce2ae62d3082b75bf85b4bf20496fe52fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 24 Jun 2024 20:59:32 +0200 Subject: [PATCH] Small fix and comment add --- server/src/uds/core/services/generics/dynamic/userservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/core/services/generics/dynamic/userservice.py b/server/src/uds/core/services/generics/dynamic/userservice.py index 0d216f3a6..4d80a9ca0 100644 --- a/server/src/uds/core/services/generics/dynamic/userservice.py +++ b/server/src/uds/core/services/generics/dynamic/userservice.py @@ -306,7 +306,7 @@ class DynamicUserService(services.UserService, autoserializable.AutoSerializable str: The name of the vm (consts.NO_MORE_NAMES if no more names are available) Note: - Override it if you need a different vm name + Override it if you need a different vm name. It's used to remove duplicates! """ name = self.get_name() if name == consts.NO_MORE_NAMES: @@ -463,7 +463,7 @@ class DynamicUserService(services.UserService, autoserializable.AutoSerializable if state == types.states.TaskState.FINISHED: # Remove finished operation from queue top_op = self._queue.pop(0) - if top_op != types.services.Operation.RETRY: + if top_op != types.services.Operation.RETRY: # Inserted if a retrayable error occurs on execution queue self._reset_retries_counter() return self._execute_queue()