forked from shaba/openuds
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:
parent
b777919f52
commit
57bd5e8149
@ -55,7 +55,7 @@ from uds.models.Util import getSqlDatetime
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
__updated__ = '2015-11-16'
|
||||
__updated__ = '2015-11-18'
|
||||
|
||||
|
||||
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.
|
||||
'''
|
||||
self.transports.clear()
|
||||
self.assignedGroups.clear()
|
||||
self.osmanager = None
|
||||
self.service = None
|
||||
self.setState(State.REMOVED)
|
||||
# self.transports.clear()
|
||||
# self.assignedGroups.clear()
|
||||
# self.osmanager = None
|
||||
# self.service = None
|
||||
# self.setState(State.REMOVED)
|
||||
self.delete()
|
||||
|
||||
def markOldUserServicesAsRemovables(self, activePub):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user