Skip to content

Commit

Permalink
adding collaborator data sync
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed May 2, 2023
1 parent c29500d commit b94c1b5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b94c1b5

Please sign in to comment.