Skip to content

Commit

Permalink
wip: cron workflows to validate ODR buckets STAC
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed May 13, 2024
1 parent 71b3396 commit 955b3f4
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 8 deletions.
33 changes: 30 additions & 3 deletions workflows/cron/cron-stac-validate-nz-elevation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
linz.govt.nz/category: stac
spec:
schedule: '* * * * *'
schedule: '0 07 * * *' # 7 AM every day
timezone: 'NZ'
startingDeadlineSeconds: 3600 # Allow 1 hour delay if the workflow-controller clashes during the starting time.
concurrencyPolicy: 'Allow'
Expand All @@ -15,12 +15,39 @@ spec:
suspend: false
workflowSpec:
workflowTemplateRef:
name: stac-validate-parallel
name: tpl-at-stac-validate
entrypoint: main
arguments:
parameters:
- name: 'uri'
value: 's3://nz-elevation/'
- name: 'checksum'
- name: 'checksum_assets'
value: 'false'
- name: 'checksum_links'
value: 'true'
---
apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
name: cron-stac-validate-nz-elevation-all-checksums
labels:
linz.govt.nz/category: stac
spec:
schedule: '0 07 1 * *' # 7 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
arguments:
parameters:
- name: 'uri'
value: 's3://nz-elevation/'
- name: 'checksum_assets'
value: 'true'
- name: 'checksum_links'
value: 'true'
33 changes: 30 additions & 3 deletions workflows/cron/cron-stac-validate-nz-imagery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
linz.govt.nz/category: stac
spec:
schedule: '* * * * *'
schedule: '0 07 * * *' # 7 AM every day
timezone: 'NZ'
startingDeadlineSeconds: 3600 # Allow 1 hour delay if the workflow-controller clashes during the starting time.
concurrencyPolicy: 'Allow'
Expand All @@ -15,12 +15,39 @@ spec:
suspend: false
workflowSpec:
workflowTemplateRef:
name: stac-validate-parallel
name: tpl-at-stac-validate
entrypoint: main
arguments:
parameters:
- name: 'uri'
value: 's3://nz-imagery/'
- name: 'checksum'
- name: 'checksum_assets'
value: 'false'
- name: 'checksum_links'
value: 'true'
---
apiVersion: argoproj.io/v1alpha1
kind: CronWorkflow
metadata:
name: cron-stac-validate-nz-imagery-all-checksums
labels:
linz.govt.nz/category: stac
spec:
schedule: '0 07 1 * *' # 7 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
arguments:
parameters:
- name: 'uri'
value: 's3://nz-imagery/'
- name: 'checksum_assets'
value: 'true'
- name: 'checksum_links'
value: 'true'
10 changes: 8 additions & 2 deletions workflows/stac/stac-validate-parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: stac-validate-parallel
name: test-stac-validate-parallel
labels:
linz.govt.nz/category: stac
spec:
Expand All @@ -21,7 +21,7 @@ spec:
- name: include
value: 'collection.json$'
- name: checksum_assets
description: 'Validate the file:checksum of each asset if it exists'
description: 'Validate asset checksums.'
value: 'false'
enum:
- 'true'
Expand All @@ -32,6 +32,12 @@ spec:
enum:
- 'false'
- 'true'
- name: checksum_links
description: 'Validate links checksums.'
value: 'false'
enum:
- 'false'
- 'true'
templateDefaults:
container:
imagePullPolicy: Always
Expand Down

0 comments on commit 955b3f4

Please sign in to comment.