Skip to content

Commit

Permalink
feat: add capture-dates.geojson.gz to known location
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Sep 11, 2024
1 parent 0a40780 commit 275b516
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions workflows/raster/national-dem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ spec:
- name: config-file
dag:
tasks:
- name: collection-id-setup
template: collection-id-setup
depends: 'group.Succeeded'
- name: get-location
template: get-location

- name: create-mapsheet
template: create-mapsheet
Expand All @@ -175,7 +174,12 @@ spec:
- name: compare
# Workaround --compare with empty value will fail so we add the flag inside the input parameter
value: '{{= workflow.parameters.compare == "" ? "" : "--compare=" + workflow.parameters.compare}}'

- name: bucket
value: '{{tasks.get-location.outputs.parameters.bucket}}'
- name: key
value: '{{tasks.get-location.outputs.parameters.key}}'
depends: 'get-location.Succeeded'

- name: group
templateRef:
name: tpl-at-group
Expand All @@ -192,6 +196,10 @@ spec:
depends: 'create-mapsheet'
when: "{{= len(sprig.fromJson(tasks['create-mapsheet'].outputs.parameters.file_list)) > 0 }}"

- name: collection-id-setup
template: collection-id-setup
depends: 'group.Succeeded'

- name: standardise-validate
template: standardise-validate
arguments:
Expand Down Expand Up @@ -232,10 +240,6 @@ spec:
data: '{{tasks.stac-validate.outputs.result}}'
depends: 'create-collection.Succeeded'

- name: get-location
template: get-location
depends: 'group.Succeeded'

- name: create-overview
when: "'{{workflow.parameters.target_epsg}}' =~ '2193|3857' && '{{workflow.parameters.compression}}' != 'dem_lerc'"
arguments:
Expand Down Expand Up @@ -306,7 +310,8 @@ spec:
parameters:
- name: config-file
- name: compare

- name: bucket
- name: key
container:
image: 'ghcr.io/linz/argo-tasks:pr-1048'
resources:
Expand Down Expand Up @@ -354,6 +359,14 @@ spec:
optional: true
archive:
none: {}
# Provenance information for the collection
- name: capture-dates
path: '/tmp/create-mapsheet/layers-required.geojson.gz'
s3:
bucket: '{{inputs.parameters.bucket}}'
key: '{{inputs.parameters.key}}flat/capture-dates.geojson.gz'
archive:
none: {}

- name: standardise-validate
nodeSelector:
Expand Down

0 comments on commit 275b516

Please sign in to comment.