1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Refactor UserServiceManager to raise MaxServicesReachedError when the maximum number of preparing services is reached

This commit is contained in:
Adolfo Gómez García 2024-10-15 23:05:10 +02:00
parent e1c68f3895
commit 418e1f7c0b
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -209,7 +209,7 @@ class UserServiceManager(metaclass=singleton.Singleton):
operations_logger.info( operations_logger.info(
'Too many preparing services. Creation of assigned service denied by max preparing services parameter. (login storm with insufficient cache?).' 'Too many preparing services. Creation of assigned service denied by max preparing services parameter. (login storm with insufficient cache?).'
) )
raise ServiceNotReadyError() raise MaxServicesReachedError()
if service_pool.service.get_type().publication_type is not None: if service_pool.service.get_type().publication_type is not None:
publication = service_pool.active_publication() publication = service_pool.active_publication()