Skip to content

Commit

Permalink
refactor: use two tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed May 21, 2024
1 parent 44589b4 commit 645552c
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions workflows/cron/cron-stac-validate-all-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,51 @@
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'
successfulJobsHistoryLimit: 3
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}}'

0 comments on commit 645552c

Please sign in to comment.