Example #1
0
    def execute_custom(self,
                       blueprint_id,
                       workflow_id,
                       parameters=None,
                       allow_custom_parameters=None,
                       task_retries=None,
                       task_retry_interval=None):
        """
        Starts generic workflow for a blueprint deployment
        Parameters
        ----------
        blueprint_id: str
        parameters: dict
        allow_custom_parameters: bool
        task_retries: int
        task_retry_interval: int

        Returns
        -------

        """
        environment = blueprints.load_blueprint_storage_env(
            blueprint_id, storage_path=self._storage_path)
        return workflows.generic_execute(
            blueprint_id=blueprint_id,
            workflow_id=workflow_id,
            parameters=parameters,
            allow_custom_parameters=allow_custom_parameters,
            task_retries=task_retries,
            task_retry_interval=task_retry_interval,
            environment=environment)
Example #2
0
    def load_blueprint_storage(self, blueprint_id):
        """
        Loads blueprint storage object
        Parameters
        ----------
        blueprint_id: str

        Returns
        -------
        blueprint_storage: FileStorage
        """
        return blueprints.load_blueprint_storage_env(
            blueprint_id, storage_path=self._storage_path)
Example #3
0
 def install(self,
             blueprint_id,
             parameters=None,
             allow_custom_parameters=None,
             task_retries=None,
             task_retry_interval=None):
     environment = blueprints.load_blueprint_storage_env(
         blueprint_id, storage_path=self._storage_path)
     return workflows.install(
         blueprint_id,
         parameters=parameters,
         allow_custom_parameters=allow_custom_parameters,
         task_retries=task_retries,
         task_retry_interval=task_retry_interval,
         environment=environment)
Example #4
0
 def execute_custom(self,
                    blueprint_id,
                    workflow_id,
                    parameters=None,
                    allow_custom_parameters=None,
                    task_retries=None,
                    task_retry_interval=None):
     environment = blueprints.load_blueprint_storage_env(
         blueprint_id, storage_path=self._storage_path)
     return workflows.generic_execute(
         blueprint_id=blueprint_id,
         workflow_id=workflow_id,
         parameters=parameters,
         allow_custom_parameters=allow_custom_parameters,
         task_retries=task_retries,
         task_retry_interval=task_retry_interval,
         environment=environment)
Example #5
0
 def load_blueprint_storage(self, blueprint_id):
     return blueprints.load_blueprint_storage_env(
         blueprint_id, storage_path=self._storage_path)