Skip to content

Commit

Permalink
feat: publish elevation datasets in bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Aug 18, 2023
1 parent be6f941 commit c2d8c9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/generate-argo-cli-commands-elevation-pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

PARAMETERS_CSV = "./data/elevation-18-08-23.csv"

COMMAND = "argo submit ~/dev/topo-workflows/workflows/imagery/publish-copy-wf.yaml -n argo -f ./{0}.yaml --generate-name {1}\n"
COMMAND = "argo submit ~/dev/topo-workflows/workflows/imagery/publish-copy-wf.yaml -n argo -f ./{0}.yaml --generate-name publish-{1}\n"


def _index_csv(header: List[str]) -> Dict[str, int]:
Expand Down
14 changes: 12 additions & 2 deletions workflows/imagery/publish-copy-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: imagery-standardising-publish-import-
generateName: bulk-publish-
namespace: argo
spec:
parallelism: 50
Expand All @@ -13,7 +13,7 @@ spec:
semaphore:
configMapKeyRef:
name: semaphores
key: bulk
key: bulkcopy
arguments:
parameters:
- name: copy-option
Expand All @@ -40,6 +40,16 @@ spec:
templateRef:
name: publish-copy
template: main
arguments:
parameters:
- name: source
value: "{{workflow.parameters.source}}"
- name: include
value: "{{workflow.parameters.include}}"
- name: group
value: "{{workflow.parameters.group}}"
- name: group-size
value: "{{workflow.parameters.group-size}}"
volumes:
- name: ephemeral
emptyDir: {}
Expand Down

0 comments on commit c2d8c9e

Please sign in to comment.