diff --git a/src/server.py b/src/server.py index 1aa3903..d92d584 100644 --- a/src/server.py +++ b/src/server.py @@ -67,6 +67,7 @@ class JobTypeName(str, Enum): ADCIRC2COG_TIFF_JOB = 'adcirc2cog-tiff-job' ADCIRCTIME_TO_COG_JOB = 'adcirctime-to-cog-job' AST_RUN_HARVESTER_JOB = 'ast-run-harvester-job' + COLLAB_DATA_SYNC = 'collab-data-sync-job' FINAL_STAGING_JOB = 'final-staging-job' GEOTIFF2COG_JOB = 'geotiff2cog-job' HAZUS = 'hazus' @@ -84,6 +85,7 @@ class NextJobTypeName(str, Enum): ADCIRC2COG_TIFF_JOB = 'adcirc2cog-tiff-job' ADCIRCTIME_TO_COG_JOB = 'adcirctime-to-cog-job' AST_RUN_HARVESTER_JOB = 'ast-run-harvester-job' + COLLAB_DATA_SYNC = 'collab-data-sync-job' COMPLETE = 'complete' FINAL_STAGING_JOB = 'final-staging-job' GEOTIFF2COG_JOB = 'geotiff2cog-job' @@ -118,16 +120,15 @@ class ImageRepo(str, Enum): # declare the component job type image name job_type_to_image_name: dict = {'adcirc2cog-tiff-job': '/adcirc2cog:', 'adcirctime-to-cog-job': '/adcirctime2cogs:', - 'ast-run-harvester-job': '/ast_run_harvester:', 'final-staging-job': '/stagedata:', 'geotiff2cog-job': '/adcirc2cog:', - 'hazus': '/adras:', 'load-geo-server-job': '/load_geoserver:', 'load-geo-server-s3-job': '/load_geoserver:', - 'obs-mod-ast-job': '/ast_supp:', - 'staging': '/stagedata:'} + 'ast-run-harvester-job': '/ast_run_harvester:', 'collab-data-sync-job': '/apsviz-collab-sync', + 'final-staging-job': '/stagedata:', 'geotiff2cog-job': '/adcirc2cog: ', 'hazus': '/adras:', + 'load-geo-server-job': '/load_geoserver:', 'load-geo-server-s3-job': '/load_geoserver:', + 'obs-mod-ast-job': '/ast_supp:', 'staging': '/stagedata:'} # declare job name to id -job_type_name_to_id: dict = {"adcirc2cog-tiff-job": 23, 'adcirctime-to-cog-job': 26, 'ast-run-harvester-job': 27, "complete": 21, - "final-staging-job": 20, "geotiff2cog-job": 24, "hazus": 12, "load-geo-server-job": 19, "load-geo-server-s3-job": 28, - "obs-mod-ast-job": 25, - "staging": 11} +job_type_name_to_id: dict = {"adcirc2cog-tiff-job": 23, 'adcirctime-to-cog-job': 26, 'ast-run-harvester-job': 27, 'collab-data-sync-job': 29, + "complete": 21, "final-staging-job": 20, "geotiff2cog-job": 24, "hazus": 12, "load-geo-server-job": 19, + "load-geo-server-s3-job": 28, "obs-mod-ast-job": 25, "staging": 11} def get_log_file_list(hostname):