mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-25 23:21:41 +03:00
Now ensures setReady does not steals, on error, the machine to the user
This commit is contained in:
parent
1959051fe4
commit
b48bea14d2
@ -419,7 +419,12 @@ class UserServiceManager:
|
||||
|
||||
logger.debug('Service %s is usable, checking it via setReady', userService)
|
||||
userServiceInstance = userService.getInstance()
|
||||
state = userServiceInstance.setReady()
|
||||
try:
|
||||
state = userServiceInstance.setReady()
|
||||
except Exception as e:
|
||||
logger.warn('Could not check readyness of %s: %s', userService, e)
|
||||
return False
|
||||
|
||||
logger.debug('State: %s', state)
|
||||
|
||||
if state == State.FINISHED:
|
||||
|
Loading…
Reference in New Issue
Block a user