Skip to content

Commit

Permalink
add retryStrategie
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Sep 19, 2024
1 parent a8bf1bc commit bccb67c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/substreams-sink-sql-backfill/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 1 addition & 6 deletions charts/substreams-sink-sql-backfill/templates/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ spec:
templates:
- name: main
retryStrategy:
retryPolicy: "Always"
limit: "3"
backoff:
duration: "10"
factor: "2"
maxDuration: "1h"
{{- .Values.retryStrategy | toYaml | nindent 6 }}
steps:
{{- range $rangeIndex, $range := .Values.blockRanges }}
{{- if eq $rangeIndex 0 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/substreams-sink-sql-backfill/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ podGarbageCollection:
strategy: OnPodCompletion
deleteDelayDuration: 30s

retryStrategy:
retryPolicy: "OnFailure"
limit: "100"
backoff:
duration: "1m"
factor: "2"
maxDuration: "6h"

# Indicate the number of parallel jobs and the resources used by a job
# This way, you can limit the total resources used with <parallelism>*<resource>
Expand Down

0 comments on commit bccb67c

Please sign in to comment.