From 813603ec7ef11d825b90079fe7e6e6f9fe5c2b0f Mon Sep 17 00:00:00 2001 From: grallewellyn Date: Wed, 11 Feb 2026 15:08:16 -0800 Subject: [PATCH 1/2] updated naming to deploy when you just deploy --- maap/config_reader.py | 4 ++-- maap/maap.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/maap/config_reader.py b/maap/config_reader.py index 5e6423e..b40b41e 100644 --- a/maap/config_reader.py +++ b/maap/config_reader.py @@ -174,7 +174,7 @@ class MaapConfig: Endpoint Attributes ------------------- - algorithm_register : str + algorithm_deploy : str Endpoint for algorithm registration. algorithm_build : str Endpoint for algorithm builds. @@ -257,7 +257,7 @@ def __init__(self, maap_host): self.page_size = os.environ.get("MAAP_CMR_PAGE_SIZE", 20) self._PROXY_GRANTING_TICKET = os.environ.get("MAAP_PGT", '') self.content_type = os.environ.get("MAAP_CMR_CONTENT_TYPE", "application/echo10+xml") - self.algorithm_register = self._get_api_endpoint("algorithm_register") + self.algorithm_deploy = self._get_api_endpoint("algorithm_deploy") self.algorithm_build = self._get_api_endpoint("algorithm_build") self.mas_algo = self._get_api_endpoint("mas_algo") self.dps_job = self._get_api_endpoint("dps_job") diff --git a/maap/maap.py b/maap/maap.py index 2ac93ce..00351e2 100644 --- a/maap/maap.py +++ b/maap/maap.py @@ -604,11 +604,11 @@ def get_queues(self): See Also -------- :meth:`submit_job` : Submit a job to a queue - :meth:`register_algorithm` : Register an algorithm to run on queues + :meth:`algorithm_deploy` : Deploy an algorithm to run on queues """ - url = os.path.join(self.config.algorithm_register, 'resource') + url = os.path.join(self.config.algorithm_deploy, 'resource') headers = self._get_api_header() - logger.debug('GET request sent to {}'.format(self.config.algorithm_register)) + logger.debug('GET request sent to {}'.format(self.config.algorithm_deploy)) logger.debug('headers:') logger.debug(headers) response = requests.get( @@ -617,9 +617,9 @@ def get_queues(self): ) return response - def register_algorithm_from_cwl_file(self, file_path): + def deploy_algorithm_from_cwl_file(self, file_path): """ - Registers an algorithm from a CWL file + Deploys an algorithm from a CWL file """ # Read raw text from CWL file with open(file_path, 'r') as f: @@ -638,7 +638,7 @@ def register_algorithm_from_cwl_file(self, file_path): def replace_algorithm_from_cwl_file(self, process_id, file_path): """ - Registers an algorithm from a CWL file + Deploys an algorithm from a CWL file """ # Read raw text from CWL file with open(file_path, 'r') as f: @@ -832,7 +832,7 @@ def list_algorithms(self): ) return response - def register_algorithm(self, execution_unit_href): + def deploy_algorithm(self, execution_unit_href): """ Deploy a new OGC process :param execution_unit_href: URL to the CWL file From 15ed0c22723d02aad792788f4537fe9eb0f0c935 Mon Sep 17 00:00:00 2001 From: grallewellyn Date: Wed, 11 Feb 2026 15:12:08 -0800 Subject: [PATCH 2/2] algorithm_deploy back to algorithm_register --- maap/config_reader.py | 4 ++-- maap/maap.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/maap/config_reader.py b/maap/config_reader.py index b40b41e..5e6423e 100644 --- a/maap/config_reader.py +++ b/maap/config_reader.py @@ -174,7 +174,7 @@ class MaapConfig: Endpoint Attributes ------------------- - algorithm_deploy : str + algorithm_register : str Endpoint for algorithm registration. algorithm_build : str Endpoint for algorithm builds. @@ -257,7 +257,7 @@ def __init__(self, maap_host): self.page_size = os.environ.get("MAAP_CMR_PAGE_SIZE", 20) self._PROXY_GRANTING_TICKET = os.environ.get("MAAP_PGT", '') self.content_type = os.environ.get("MAAP_CMR_CONTENT_TYPE", "application/echo10+xml") - self.algorithm_deploy = self._get_api_endpoint("algorithm_deploy") + self.algorithm_register = self._get_api_endpoint("algorithm_register") self.algorithm_build = self._get_api_endpoint("algorithm_build") self.mas_algo = self._get_api_endpoint("mas_algo") self.dps_job = self._get_api_endpoint("dps_job") diff --git a/maap/maap.py b/maap/maap.py index 00351e2..294321d 100644 --- a/maap/maap.py +++ b/maap/maap.py @@ -604,11 +604,11 @@ def get_queues(self): See Also -------- :meth:`submit_job` : Submit a job to a queue - :meth:`algorithm_deploy` : Deploy an algorithm to run on queues + :meth:`algorithm_register` : Deploy an algorithm to run on queues """ - url = os.path.join(self.config.algorithm_deploy, 'resource') + url = os.path.join(self.config.algorithm_register, 'resource') headers = self._get_api_header() - logger.debug('GET request sent to {}'.format(self.config.algorithm_deploy)) + logger.debug('GET request sent to {}'.format(self.config.algorithm_register)) logger.debug('headers:') logger.debug(headers) response = requests.get(