From efe347607418a9feda72859e0aa0f55ca1311d8b Mon Sep 17 00:00:00 2001 From: SilviaAmAm Date: Mon, 27 Jan 2025 16:26:41 +0100 Subject: [PATCH] :sparkles: Add settings for request retry in OAB --- charts/openarchiefbeheer/CHANGELOG.md | 4 ++++ charts/openarchiefbeheer/Chart.yaml | 2 +- charts/openarchiefbeheer/README.md | 5 ++++- charts/openarchiefbeheer/templates/configmap.yaml | 11 ++++++++++- charts/openarchiefbeheer/values.yaml | 4 ++++ 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/charts/openarchiefbeheer/CHANGELOG.md b/charts/openarchiefbeheer/CHANGELOG.md index e27489f..fe63092 100644 --- a/charts/openarchiefbeheer/CHANGELOG.md +++ b/charts/openarchiefbeheer/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.3.0 (2025-01-27) + +- Add settings for request retry. This should help reduce the failures when resyncing zaken with openzaak. + ## 1.2.0 (2025-01-22) - [#165] Add possibility to use custom celery queue and worker names when using the worker liveness probe. diff --git a/charts/openarchiefbeheer/Chart.yaml b/charts/openarchiefbeheer/Chart.yaml index be23f19..a2b3b0f 100644 --- a/charts/openarchiefbeheer/Chart.yaml +++ b/charts/openarchiefbeheer/Chart.yaml @@ -3,7 +3,7 @@ name: openarchiefbeheer description: Opstellen, beheren en uitvoeren van vernietigingslijsten, voor gebruik met Zaakgericht werken type: application -version: 1.2.0 +version: 1.3.0 appVersion: latest dependencies: diff --git a/charts/openarchiefbeheer/README.md b/charts/openarchiefbeheer/README.md index 0c002b3..e486afc 100644 --- a/charts/openarchiefbeheer/README.md +++ b/charts/openarchiefbeheer/README.md @@ -1,6 +1,6 @@ # openarchiefbeheer -![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) +![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) Opstellen, beheren en uitvoeren van vernietigingslijsten, voor gebruik met Zaakgericht werken @@ -161,6 +161,9 @@ Opstellen, beheren en uitvoeren van vernietigingslijsten, voor gebruik met Zaakg | settings.react.apiUrl | string | `""` | | | settings.react.zaakUrlTemplate | string | `""` | | | settings.requestsReadTimeout | string | `"30"` | | +| settings.retry.backoffFactor | string | `""` | | +| settings.retry.statusForcelist | string | `""` | | +| settings.retry.total | string | `""` | | | settings.secretKey | string | `""` | Generate secret key at https://djecrety.ir/ | | settings.sentry.dsn | string | `""` | | | settings.throttling.enable | bool | `true` | | diff --git a/charts/openarchiefbeheer/templates/configmap.yaml b/charts/openarchiefbeheer/templates/configmap.yaml index efc13b7..83b3f63 100644 --- a/charts/openarchiefbeheer/templates/configmap.yaml +++ b/charts/openarchiefbeheer/templates/configmap.yaml @@ -105,4 +105,13 @@ data: {{- if .Values.settings.frontendUrl }} FRONTEND_URL: {{ .Values.settings.frontendUrl | toString | quote }} {{- end }} - + {{- if .Values.settings.retry.total }} + RETRY_TOTAL: {{ .Values.settings.retry.total | toString | quote }} + {{- end }} + {{- if .Values.settings.retry.backoffFactor }} + RETRY_BACKOFF_FACTOR: {{ .Values.settings.retry.backoffFactor | toString | quote }} + {{- end }} + {{- if .Values.settings.retry.statusForcelist }} + RETRY_STATUS_FORCELIST: {{ .Values.settings.retry.statusForcelist | toString | quote }} + {{- end }} + diff --git a/charts/openarchiefbeheer/values.yaml b/charts/openarchiefbeheer/values.yaml index d488579..afa3b6e 100644 --- a/charts/openarchiefbeheer/values.yaml +++ b/charts/openarchiefbeheer/values.yaml @@ -250,6 +250,10 @@ settings: zaakUrlTemplate: "" frontendUrl: "" + retry: + total: "" + backoffFactor: "" + statusForcelist: "" worker: label: "1"