Skip to content

Commit 0c7e04d

Browse files
fix koanf
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 410837e commit 0c7e04d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

config/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_INTERVAL=""
3636
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_OPENLANEAPIHOST=""
3737
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_OPENLANEAPITOKEN=""
3838
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_CUTOFFDURATION=""
39-
RIVERBOAT_RIVER_MAXRETRIES="10"
39+
RIVERBOAT_RIVER_DEFAULTMAXRETRIES="10"

config/config.example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
refreshInterval: 600000000000
22
river:
33
databaseHost: postgres://postgres:password@0.0.0.0:5432/jobs?sslmode=disable
4-
maxRetries: 10
4+
defaultMaxRetries: 10
55
queues: null
66
workers:
77
createCustomDomainWorker:

config/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ data:
4848
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_OPENLANEAPIHOST: {{ .Values.riverboat.river.workers.deleteExportContentWorker.config.openlaneAPIHost }}
4949
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_OPENLANEAPITOKEN: {{ .Values.riverboat.river.workers.deleteExportContentWorker.config.openlaneAPIToken }}
5050
RIVERBOAT_RIVER_WORKERS_DELETEEXPORTCONTENTWORKER_CONFIG_CUTOFFDURATION: {{ .Values.riverboat.river.workers.deleteExportContentWorker.config.cutoffDuration }}
51-
RIVERBOAT_RIVER_MAXRETRIES: {{ .Values.riverboat.river.maxRetries | default 10 }}
51+
RIVERBOAT_RIVER_DEFAULTMAXRETRIES: {{ .Values.riverboat.river.defaultMaxRetries | default 10 }}

configgen/api-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Config is the configuration for the river server
5656
|**databaseHost**|`string`|DatabaseHost for connecting to the postgres database<br/>||
5757
|[**queues**](#riverqueues)|`array`|||
5858
|[**workers**](#riverworkers)|`object`|Workers that will be enabled on the server<br/>||
59-
|**maxRetries**|`integer`|DefaultMaxRetries is the maximum number of retries for failed jobs, this can be set differently per job<br/>||
59+
|**defaultMaxRetries**|`integer`|DefaultMaxRetries is the maximum number of retries for failed jobs, this can be set differently per job<br/>||
6060

6161
**Additional Properties:** not allowed
6262
**Example**

configgen/riverboat.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
"$ref": "#/$defs/river.Workers",
208208
"description": "Workers to be enabled on the server"
209209
},
210-
"maxRetries": {
210+
"defaultMaxRetries": {
211211
"type": "integer",
212212
"description": "DefaultMaxRetries is the maximum number of retries for failed jobs, this can be set differently per job"
213213
}

internal/river/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type Config struct {
1818
// Workers to be enabled on the server
1919
Workers Workers `koanf:"workers" json:"workers"`
2020
// DefaultMaxRetries is the maximum number of retries for failed jobs, this can be set differently per job
21-
DefaultMaxRetries int `koanf:"maxRetries" json:"maxRetries" default:"10"`
21+
DefaultMaxRetries int `koanf:"defaultMaxRetries" json:"defaultMaxRetries" default:"10"`
2222
}
2323

2424
// Queue is the configuration for a queue

0 commit comments

Comments
 (0)