From 645552cc03248a5bb078b7a645cc4a9ec7f0c88f Mon Sep 17 00:00:00 2001 From: Paul Fouquet Date: Tue, 21 May 2024 16:28:37 +1200 Subject: [PATCH] refactor: use two tasks --- .../cron/cron-stac-validate-all-data.yaml | 40 +++++++++++++++---- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/workflows/cron/cron-stac-validate-all-data.yaml b/workflows/cron/cron-stac-validate-all-data.yaml index 7b4a786a1..2926cb4b2 100644 --- a/workflows/cron/cron-stac-validate-all-data.yaml +++ b/workflows/cron/cron-stac-validate-all-data.yaml @@ -2,11 +2,11 @@ apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: - name: cron-stac-validate-all-data + name: test-cron-stac-validate-all-data labels: linz.govt.nz/category: stac spec: - schedule: '0 05 1 * *' # 5 AM every 1st of the month + schedule: '0 05 1 * *' # 5 AM every 1st of the month timezone: 'NZ' startingDeadlineSeconds: 3600 # Allow 1 hour delay if the workflow-controller clashes during the starting time. concurrencyPolicy: 'Allow' @@ -14,13 +14,39 @@ spec: failedJobsHistoryLimit: 3 suspend: false workflowSpec: - workflowTemplateRef: - name: stac-validate-parallel + entrypoint: main arguments: parameters: - - name: 'uri' - value: '{{workflow.parameters.uri}}' - - name: 'checksum_assets' + - name: checksum_assets value: 'true' - name: 'checksum_links' value: 'true' + templates: + - name: main + retryStrategy: + limit: '0' + steps: + - - name: stac-validate-imagery + templateRef: + name: stac-validate-parallel + template: main + arguments: + parameters: + - name: 'uri' + value: 's3://nz-imageryfails/' + - name: 'checksum_assets' + value: '{{workflow.parameters.checksum_assets}}' + - name: 'checksum_links' + value: '{{workflow.parameters.checksum_assets}}' + - name: stac-validate-elevation + templateRef: + name: stac-validate-parallel + template: main + arguments: + parameters: + - name: 'uri' + value: 's3://nz-elevationfails/' + - name: 'checksum_assets' + value: '{{workflow.parameters.checksum_assets}}' + - name: 'checksum_links' + value: '{{workflow.parameters.checksum_assets}}'