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

Instead of leaving a removed deployed service once it is removed in the list, we now erase it as soon as it removal process has finished

This commit is contained in:
Adolfo Gómez García 2015-11-18 09:28:42 +01:00
parent b777919f52
commit 57bd5e8149

View File

@ -55,7 +55,7 @@ from uds.models.Util import getSqlDatetime
from datetime import timedelta from datetime import timedelta
import logging import logging
__updated__ = '2015-11-16' __updated__ = '2015-11-18'
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -228,11 +228,12 @@ class DeployedService(UUIDModel):
A background worker will check for removed deloyed services and clean database of them. A background worker will check for removed deloyed services and clean database of them.
''' '''
self.transports.clear() # self.transports.clear()
self.assignedGroups.clear() # self.assignedGroups.clear()
self.osmanager = None # self.osmanager = None
self.service = None # self.service = None
self.setState(State.REMOVED) # self.setState(State.REMOVED)
self.delete()
def markOldUserServicesAsRemovables(self, activePub): def markOldUserServicesAsRemovables(self, activePub):
''' '''