diff --git a/server/src/uds/core/consts/services.py b/server/src/uds/core/consts/services.py index f87129e29..ece24d7b6 100644 --- a/server/src/uds/core/consts/services.py +++ b/server/src/uds/core/consts/services.py @@ -35,6 +35,7 @@ import typing HOURS_BEFORE_CONSIDERED_LOCKED: typing.Final[int] = 2 # In hours USRV_SUGGESTED_CHECK_INTERVAL: typing.Final[int] = 8 # In seconds +USRV_FIXED_SUGGESTED_CHECK_INTERVAL: typing.Final[int] = 2 # In seconds USRV_MAX_RETRIES: typing.Final[int] = 24 * 3600 // USRV_SUGGESTED_CHECK_INTERVAL # 1 day USRV_MAX_STATE_CHECKS: typing.Final[int] = ( HOURS_BEFORE_CONSIDERED_LOCKED * 3600 // USRV_SUGGESTED_CHECK_INTERVAL diff --git a/server/src/uds/core/services/generics/fixed/userservice.py b/server/src/uds/core/services/generics/fixed/userservice.py index e79648ee3..f6eaadb9d 100644 --- a/server/src/uds/core/services/generics/fixed/userservice.py +++ b/server/src/uds/core/services/generics/fixed/userservice.py @@ -68,7 +68,7 @@ class FixedUserService(services.UserService, autoserializable.AutoSerializable, - FINISH """ - suggested_delay = consts.services.USRV_SUGGESTED_CHECK_INTERVAL + suggested_delay = consts.services.USRV_FIXED_SUGGESTED_CHECK_INTERVAL # How many times we will check for a state before giving up max_state_checks: typing.ClassVar[int] = consts.services.USRV_MAX_STATE_CHECKS # How many "retries" operation on same state will be allowed before giving up