From bccb67c2518fe7259618c8890d6f23ebed06c176 Mon Sep 17 00:00:00 2001 From: coutug Date: Thu, 19 Sep 2024 10:31:21 -0400 Subject: [PATCH] add retryStrategie --- charts/substreams-sink-sql-backfill/Chart.yaml | 2 +- .../substreams-sink-sql-backfill/templates/workflow.yaml | 7 +------ charts/substreams-sink-sql-backfill/values.yaml | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/charts/substreams-sink-sql-backfill/Chart.yaml b/charts/substreams-sink-sql-backfill/Chart.yaml index 59e742c..fe8491f 100644 --- a/charts/substreams-sink-sql-backfill/Chart.yaml +++ b/charts/substreams-sink-sql-backfill/Chart.yaml @@ -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 diff --git a/charts/substreams-sink-sql-backfill/templates/workflow.yaml b/charts/substreams-sink-sql-backfill/templates/workflow.yaml index a3e40c4..e0bc851 100644 --- a/charts/substreams-sink-sql-backfill/templates/workflow.yaml +++ b/charts/substreams-sink-sql-backfill/templates/workflow.yaml @@ -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 }} diff --git a/charts/substreams-sink-sql-backfill/values.yaml b/charts/substreams-sink-sql-backfill/values.yaml index 82b6d31..ab68c63 100644 --- a/charts/substreams-sink-sql-backfill/values.yaml +++ b/charts/substreams-sink-sql-backfill/values.yaml @@ -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 *