diff --git a/server/src/uds/core/consts/services.py b/server/src/uds/core/consts/services.py index 2f3e9d366..c24756a66 100644 --- a/server/src/uds/core/consts/services.py +++ b/server/src/uds/core/consts/services.py @@ -36,6 +36,6 @@ SUGGESTED_CHECK_INTERVAL: typing.Final[int] = 10 # In seconds MAX_RETRIES: typing.Final[int] = 7 * 24 * 60 // SUGGESTED_CHECK_INTERVAL # 7 days MAX_STATE_CHECKS: typing.Final[int] = 32 # Max number of state checks before giving up -PUB_SUGGESTED_CHECK_INTERVAL: typing.Final[int] = 20 # In seconds +PUB_SUGGESTED_CHECK_INTERVAL: typing.Final[int] = 30 # In seconds PUB_MAX_RETRIES: typing.Final[int] = 7 * 24 * 60 // PUB_SUGGESTED_CHECK_INTERVAL # 7 days PUB_MAX_STATE_CHECKS: typing.Final[int] = 7200 // PUB_SUGGESTED_CHECK_INTERVAL # 2 hours for a single state at most \ No newline at end of file diff --git a/server/src/uds/core/services/generics/dynamic/publication.py b/server/src/uds/core/services/generics/dynamic/publication.py index 33770e131..bc7c708ec 100644 --- a/server/src/uds/core/services/generics/dynamic/publication.py +++ b/server/src/uds/core/services/generics/dynamic/publication.py @@ -50,7 +50,7 @@ class DynamicPublication(services.Publication, autoserializable.AutoSerializable # as long as a couple of hours by default with our suggested delay max_state_checks: typing.ClassVar[int] = consts.services.PUB_MAX_STATE_CHECKS # How many "retries" operation on same state will be allowed before giving up - max_retries: typing.ClassVar[int] = consts.services.MAX_RETRIES + max_retries: typing.ClassVar[int] = consts.services.PUB_MAX_RETRIES # If must wait until finish queue for destroying the machine wait_until_finish_to_destroy: typing.ClassVar[bool] = False