mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +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:
parent
b777919f52
commit
57bd5e8149
@ -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):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user