Skip to content

Commit

Permalink
compress subsetter outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Jan 7, 2024
1 parent 3c73406 commit b8db299
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 43 deletions.
2 changes: 1 addition & 1 deletion app/api/subsetter/app/routers/storage/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
async def presigned_get_minio(workflow_params: WorkflowDep):
submission = workflow_params.user.get_submission(workflow_params.workflow_id)
url = get_minio_client().presigned_get_object(
workflow_params.user.username, f"argo_workflows/{submission.workflow_name}/{submission.workflow_id}/all.gz"
workflow_params.user.username, f"argo_workflows/{submission.workflow_name}/{submission.workflow_id}"
)
return {'url': url}

Expand Down
8 changes: 3 additions & 5 deletions app/argo/metadata-extraction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
value: '{{workflow.parameters.output-path}}'
artifacts:
- name: input-data
path: /tmp/input-data
path: /tmp/resource
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.bucket}}'
Expand All @@ -28,9 +28,7 @@ spec:
outputs:
artifacts:
- name: output-metadata
path: /tmp/input-data
archive:
none: {}
path: /tmp/resource
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.bucket}}'
Expand All @@ -50,7 +48,7 @@ spec:
- '-c'
args:
- >-
python3 hsextract/main.py extract /tmp/input-data
python3 hsextract/main.py extract /tmp/resource
resources: {}
entrypoint: metadata-extractor
arguments:
Expand Down
2 changes: 0 additions & 2 deletions app/argo/nwm1-subset-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ spec:
artifacts:
- name: subset-results
path: /srv/output
archive:
none: {}
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.output-bucket}}'
Expand Down
2 changes: 0 additions & 2 deletions app/argo/nwm2-subset-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ spec:
artifacts:
- name: subset-results
path: /srv/output
archive:
none: {}
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.output-bucket}}'
Expand Down
36 changes: 3 additions & 33 deletions app/argo/parflow-subset-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ spec:
metadata: {}
steps:
- - name: huc-to-shp
template: huc-to-shp
templateRef:
name: huc-to-shp
template: huc-to-shp
arguments:
parameters:
- name: output-path
Expand Down Expand Up @@ -40,36 +42,6 @@ spec:
value: '{{workflow.parameters.output-path}}'
- name: output-path
value: '{{workflow.parameters.output-path}}'
- name: huc-to-shp
inputs:
parameters:
- name: output-path
- name: output-bucket
- name: hucs
outputs:
artifacts:
- name: shape-results
path: /output
archive:
none: {}
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.output-bucket}}'
accessKeySecret:
name: minio-credentials
key: accessKey
secretKeySecret:
name: minio-credentials
key: secretKey
key: '{{inputs.parameters.output-path}}'
metadata: {}
container:
name: ''
image: us-central1-docker.pkg.dev/apps-320517/subsetter/huc-to-shp:0.0.4
args:
- '{{inputs.parameters.hucs}}'
- /output/watershed.shp
resources: {}
- name: parflow-subset-v1
inputs:
parameters:
Expand Down Expand Up @@ -105,8 +77,6 @@ spec:
artifacts:
- name: subset-results
path: /srv/shape
archive:
none: {}
s3:
endpoint: api.minio.cuahsi.io
bucket: '{{inputs.parameters.output-bucket}}'
Expand Down

0 comments on commit b8db299

Please sign in to comment.