Exemplo n.º 1
0
    def unpublish(self):
        '''
        Tries to remove the publication

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        '''
        from uds.core.managers.PublicationManager import PublicationManager
        PublicationManager.manager().unpublish(self)
Exemplo n.º 2
0
    def publish(self, changeLog=None):
        """
        Launches the publication of this deployed service.

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        """
        from uds.core.managers.PublicationManager import PublicationManager
        PublicationManager.manager().publish(self, changeLog)
Exemplo n.º 3
0
 def run(self):
     removables = DeployedServicePublication.objects.filter(state=State.REMOVABLE, deployed_service__service__provider__maintenance_mode=False)
     for removable in removables:
         try:
             PublicationManager.manager().unpublish(removable)
         except PublishException:  # Can say that it cant be removed right now
             logger.debug('Delaying removal')
             pass
    def unpublish(self):
        '''
        Tries to remove the publication

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        '''
        from uds.core.managers.PublicationManager import PublicationManager
        PublicationManager.manager().unpublish(self)
Exemplo n.º 5
0
    def publish(self, changeLog=None):
        '''
        Launches the publication of this deployed service.

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        '''
        from uds.core.managers.PublicationManager import PublicationManager
        PublicationManager.manager().publish(self, changeLog)
Exemplo n.º 6
0
    def publish(self):
        '''
        Launches the publication of this deployed service.

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        '''
        from uds.core.managers.PublicationManager import PublicationManager
        PublicationManager.manager().publish(self)
Exemplo n.º 7
0
 def run(self):
     removables = DeployedServicePublication.objects.filter(
         state=State.REMOVABLE,
         deployed_service__service__provider__maintenance_mode=False)
     for removable in removables:
         try:
             PublicationManager.manager().unpublish(removable)
         except PublishException:  # Can say that it cant be removed right now
             logger.debug('Delaying removal')
             pass
Exemplo n.º 8
0
 def cancel(self):
     '''
     Invoques the cancelation of this publication
     '''
     from uds.core.managers.PublicationManager import PublicationManager
     PublicationManager.manager().cancel(self)
 def cancel(self):
     '''
     Invoques the cancelation of this publication
     '''
     from uds.core.managers.PublicationManager import PublicationManager
     PublicationManager.manager().cancel(self)