Skip to content
Snippets Groups Projects

Using the default WS staging area instead of the capo property

Merged Daniel Nemergut requested to merge ws1808-ingest_obs_staging_changes into 2.8.2-DEVELOPMENT
1 unresolved thread
5 files
+ 90
18
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -144,7 +144,7 @@ class SECICollector(CollectorIF):
:return:
"""
self.logger.info("Collecting SECI products for staging...")
cache_path = self.parameters["seciCachePath"]
cache_path = self.parameters["cachePath"]
workflow_dir = self.parameters["workflowDir"]
staging_dir = self.parameters["staging_area"]
tar_name = self.create_artifacts_name()
@@ -159,3 +159,31 @@ class SECICollector(CollectorIF):
exit(1)
aux_file_to_staging(self.staging_source_dir)
class ObservationCollector(CollectorIF):
"""Collect Observation Products for Ingestion"""
def __init__(self, parameters):
self.logger = logging.getLogger("ingest_envoy")
self.parameters = parameters
self.staging_source_dir = self.parameters["staging_area"] + "/" + self.parameters["workflowDir"]
def collect_products(self):
"""
Run observation product collection script
"""
self.logger.info("Collecting observation products for staging...")
cache_path = self.parameters["cachePath"]
workflow_dir = self.parameters["workflowDir"]
staging_dir = self.parameters["staging_area"]
# run script
collector = subprocess.run(
["./observation-product-collector.sh", cache_path, workflow_dir, staging_dir],
Please register or sign in to reply
stdout=sys.stdout,
stderr=sys.stderr,
)
if collector.returncode != 0:
self.logger.error("ERROR: Observation product collection failed!")
exit(1)
Loading