Skip to content

Commit

Permalink
feat: default retryStrategy TDE-1112
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed Apr 2, 2024
1 parent 137e2cb commit 70addbe
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 32 deletions.
2 changes: 2 additions & 0 deletions infra/charts/argo.workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export class ArgoWorkflows extends Chart {
},
],
parallelism: 3,
// FIXME: `nodeAntiAffinity` - to retry on different node - is not working yet (https://github.com/argoproj/argo-workflows/pull/12701)
retryStrategy: { limit: 2, affinity: { nodeAntiAffinity: {} } },
},
},
},
Expand Down
2 changes: 0 additions & 2 deletions templates/argo-tasks/copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ spec:
entrypoint: main
templates:
- name: main
retryStrategy:
limit: '2'
inputs:
parameters:
- name: file
Expand Down
2 changes: 0 additions & 2 deletions templates/argo-tasks/push-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ spec:
entrypoint: main
templates:
- name: main
retryStrategy:
limit: '2'
inputs:
parameters:
- name: source
Expand Down
2 changes: 0 additions & 2 deletions workflows/basemaps/create-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ spec:
- name: location
value: '{{workflow.parameters.location}}'
- name: create-config
retryStrategy:
limit: '2'
inputs:
parameters:
- name: location
Expand Down
2 changes: 0 additions & 2 deletions workflows/basemaps/create-overview-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ spec:
path: '/tmp/imagery.json'

- name: create-overview
retryStrategy:
limit: '2'
inputs:
parameters:
- name: source
Expand Down
2 changes: 0 additions & 2 deletions workflows/basemaps/create-overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ spec:
- name: output
value: '{{workflow.parameters.output}}'
- name: create-overview
retryStrategy:
limit: '2'
inputs:
parameters:
- name: source
Expand Down
8 changes: 0 additions & 8 deletions workflows/basemaps/imagery-import-cogify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ spec:

# Generate a tile covering for input imagery
- name: create-covering
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand Down Expand Up @@ -284,8 +282,6 @@ spec:

# Actually create COGs using gdal_translate on a large spot instances
- name: create-cog
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand All @@ -312,8 +308,6 @@ spec:

# Create a basemaps configuration file to view the imagery
- name: create-config
retryStrategy:
limit: '2'
inputs:
parameters:
- name: path
Expand All @@ -340,8 +334,6 @@ spec:

# create additional overviews for any COGs found in the path
- name: create-overview
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand Down
8 changes: 0 additions & 8 deletions workflows/raster/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ spec:
path: '/tmp/collection-id'

- name: standardise-validate
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand Down Expand Up @@ -489,8 +487,6 @@ spec:
- '{{=sprig.trim(workflow.parameters.gsd)}}'

- name: create-collection
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand Down Expand Up @@ -582,8 +578,6 @@ spec:
path: '/tmp/key'

- name: create-overview
retryStrategy:
limit: '2'
inputs:
parameters:
- name: location
Expand All @@ -608,8 +602,6 @@ spec:
]

- name: create-config
retryStrategy:
limit: '2'
inputs:
parameters:
- name: location
Expand Down
2 changes: 0 additions & 2 deletions workflows/stac/stac-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ spec:
valueFrom:
path: /tmp/file_list.json
- name: stac-validate-collections
retryStrategy:
limit: '2'
inputs:
parameters:
- name: file
Expand Down
2 changes: 0 additions & 2 deletions workflows/test/flatten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ spec:
valueFrom:
path: /tmp/file_list.json
- name: flatten-copy
retryStrategy:
limit: '2'
inputs:
parameters:
- name: file
Expand Down
2 changes: 0 additions & 2 deletions workflows/util/create-thumbnails.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ spec:
path: /tmp/file_list.json

- name: thumbnails
retryStrategy:
limit: '2'
nodeSelector:
karpenter.sh/capacity-type: 'spot'
inputs:
Expand Down

0 comments on commit 70addbe

Please sign in to comment.