Skip to content

Commit

Permalink
Fixed the cart to support new retry logic (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnickelsen authored Oct 4, 2024
1 parent c26b876 commit f2a3553
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions chart/templates/deployment-stamp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ spec:
value: {{ .Values.messageBroker.retry.defaultFirstLevelRetryCount | quote }}
- name: Retry__RegistryTransactionStillProcessingRetryCount
value: {{ .Values.messageBroker.retry.registryTransactionStillProcessingRetryCount | quote }}
- name: Retry__RegistryTransactionStillProcessingInitialIntervalSeconds
value: {{ .Values.messageBroker.retry.registryTransactionStillProcessingInitialIntervalSeconds | quote }}
- name: Retry__RegistryTransactionStillProcessingIntervalIncrementSeconds
value: {{ .Values.messageBroker.retry.registryTransactionStillProcessingIntervalIncrementSeconds | quote }}

{{- range $i, $registry := .Values.registries }}
- name: Registries__{{ $i }}__name
Expand Down
8 changes: 6 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ messageBroker:
retry:
# number of times Stamp consumers retrys messages on errors with a 3 minute incrementing interval.
defaultFirstLevelRetryCount: 5
# number of times the registry is polled for transaction status before giving up with a 1 second interval.
registryTransactionStillProcessingRetryCount: 100
# number of times the registry is polled for transaction status before giving up with interval specified below.
registryTransactionStillProcessingRetryCount: 5
# intitial interval in seconds for the registry to retry for the transaction status.
registryTransactionStillProcessingInitialIntervalSeconds: 60
# increment interval in seconds for the registry to retry for the transaction status.
registryTransactionStillProcessingIntervalIncrementSeconds: 60

# stamp defines the deployment configuration for the stamp server
stamp:
Expand Down

0 comments on commit f2a3553

Please sign in to comment.