NOAA-OWP / hydrovis

Other
11 stars 9 forks source link

Create SD GP Service: Add code to viz_publish_service_lambda to call GP service when SD does not exist #783

Open shawncrawley opened 3 months ago

shawncrawley commented 3 months ago

Insert at this line: https://github.com/NOAA-OWP/hydrovis/blob/ti/Core/LAMBDA/viz_functions/viz_publish_service/lambda_function.py#L69 GP API Docs: https://maps-testing.water.noaa.gov/gp/sdk/rest/index.html#/02ss0000004n000000

EdisonOrellana-NOAA commented 1 month ago

Update to track progress

The lines referenced above in the lambda function

 if not s3_file(os.getenv('S3_BUCKET'), sd_s3_path).check_existence():
            print(f"---> {sd_s3_path} does not currently exist. Skipping.")

To add some background to this, the current situation is that when a service has not been previously manually published the viz_publish_service lambda skips over that service leaving it unpublished.

Geoprocessing service

Instead of skipping, the proposed solution I have been testing in ti is to call a geoprocessing service to republish this service. #630

Remaining work