1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Fixed a couple service consts

This commit is contained in:
Adolfo Gómez García 2024-05-05 05:01:48 +02:00
parent 397523c9a3
commit 579e1c2a36
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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