forked from shaba/openuds
fixed publication full persistent
This commit is contained in:
parent
4c77d1ac78
commit
c597b307b5
@ -150,12 +150,14 @@ class PublicationFinishChecker(DelayedTask):
|
|||||||
if doPublicationCleanup:
|
if doPublicationCleanup:
|
||||||
pc = PublicationOldMachinesCleaner(old.id)
|
pc = PublicationOldMachinesCleaner(old.id)
|
||||||
pc.register(GlobalConfig.SESSION_EXPIRE_TIME.getInt(True) * 3600, 'pclean-' + str(old.id), True)
|
pc.register(GlobalConfig.SESSION_EXPIRE_TIME.getInt(True) * 3600, 'pclean-' + str(old.id), True)
|
||||||
|
publication.deployed_service.markOldUserServicesAsRemovables(publication)
|
||||||
|
|
||||||
publication.setState(State.USABLE)
|
publication.setState(State.USABLE)
|
||||||
elif State.isRemoving(prevState):
|
elif State.isRemoving(prevState):
|
||||||
publication.setState(State.REMOVED)
|
publication.setState(State.REMOVED)
|
||||||
else: # State is canceling
|
else: # State is canceling
|
||||||
publication.setState(State.CANCELED)
|
publication.setState(State.CANCELED)
|
||||||
|
# Mark all previous publications deployed services as removables
|
||||||
# and make this usable
|
# and make this usable
|
||||||
publicationInstance.finish()
|
publicationInstance.finish()
|
||||||
publication.updateData(publicationInstance)
|
publication.updateData(publicationInstance)
|
||||||
|
Loading…
Reference in New Issue
Block a user