コード例 #1
0
ファイル: service_pool.py プロジェクト: tanonl/openuds
    def publish(self, changeLog: typing.Optional[str] = None) -> 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 import publicationManager
        publicationManager().publish(self, changeLog)
コード例 #2
0
    def unpublish(self) -> None:
        """
        Tries to remove the publication

        No check is done, it simply redirects the request to PublicationManager, where checks are done.
        """
        from uds.core.managers import publicationManager
        publicationManager().unpublish(self)
コード例 #3
0
 def run(self):
     removables: typing.Iterable[
         ServicePoolPublication] = ServicePoolPublication.objects.filter(
             state=State.REMOVABLE,
             deployed_service__service__provider__maintenance_mode=False)
     for removable in removables:
         try:
             publicationManager().unpublish(removable)
         except PublishException:  # Can say that it cant be removed right now
             logger.debug('Delaying removal')
コード例 #4
0
 def cancel(self):
     """
     Invoques the cancelation of this publication
     """
     from uds.core.managers import publicationManager
     publicationManager().cancel(self)
コード例 #5
0
    def cancel(self):
        """
        Invoques the cancelation of this publication
        """

        publicationManager().cancel(self)