You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When Driver is specified it takes precedence over other DB related
@@ -90,19 +92,19 @@ type Config struct {
90
92
91
93
Pipelinesstruct {
92
94
Pathstring`long:"pipelines.path" usage:"path to pipelines' directory"`
93
-
ExitOnDegradedbool`long:"pipelines.exit-on-degraded" usage:"exit Conduit if a pipeline is degraded"`
95
+
ExitOnDegradedbool`long:"pipelines.exit-on-degraded" mapstructure:"exit-on-degraded" usage:"exit Conduit if a pipeline is degraded"`
94
96
ErrorRecoverystruct {
95
97
// MinDelay is the minimum delay before restart: Default: 1 second
96
-
MinDelay time.Duration`long:"pipelines.error-recovery.min-delay" usage:"minimum delay before restart"`
98
+
MinDelay time.Duration`long:"pipelines.error-recovery.min-delay" mapstructure:"min-delay" usage:"minimum delay before restart"`
97
99
// MaxDelay is the maximum delay before restart: Default: 10 minutes
98
-
MaxDelay time.Duration`long:"pipelines.error-recovery.max-delay" usage:"maximum delay before restart"`
100
+
MaxDelay time.Duration`long:"pipelines.error-recovery.max-delay" mapstructure:"max-delay" usage:"maximum delay before restart"`
99
101
// BackoffFactor is the factor by which the delay is multiplied after each restart: Default: 2
100
-
BackoffFactorint`long:"pipelines.error-recovery.backoff-factor" usage:"backoff factor applied to the last delay"`
102
+
BackoffFactorint`long:"pipelines.error-recovery.backoff-factor" mapstructure:"backoff-factor" usage:"backoff factor applied to the last delay"`
101
103
// MaxRetries is the maximum number of restarts before the pipeline is considered unhealthy: Default: -1 (infinite)
102
-
MaxRetriesint64`long:"pipelines.error-recovery.max-retries" usage:"maximum number of retries"`
104
+
MaxRetriesint64`long:"pipelines.error-recovery.max-retries" mapstructure:"max-retries" usage:"maximum number of retries"`
103
105
// MaxRetriesWindow is the duration window in which the max retries are counted: Default: 5 minutes
104
-
MaxRetriesWindow time.Duration`long:"pipelines.error-recovery.max-retries-window" usage:"amount of time running without any errors after which a pipeline is considered healthy"`
105
-
}
106
+
MaxRetriesWindow time.Duration`long:"pipelines.error-recovery.max-retries-window" mapstructure:"max-retries-window" usage:"amount of time running without any errors after which a pipeline is considered healthy"`
0 commit comments