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
3 files
+ 86
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -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["seciCachePath"]
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],
stdout=sys.stdout,
stderr=sys.stderr,
)
if collector.returncode != 0:
self.logger.error("ERROR: Observation product collection failed!")
exit(1)
Loading