Add ability to disable script runner calls
With script runner disabled, all critical scripts would fail
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
type (
|
||||
ScriptRunnerOpt struct {
|
||||
Enabled bool `env:"SCRIPT_RUNNER_ENABLED"`
|
||||
Addr string `env:"SCRIPT_RUNNER_ADDR"`
|
||||
MaxBackoffDelay time.Duration `env:"SCRIPT_RUNNER_MAX_BACKOFF_DELAY"`
|
||||
Log bool `env:"SCRIPT_RUNNER_LOG"`
|
||||
@@ -14,6 +15,7 @@ type (
|
||||
|
||||
func ScriptRunner(pfix string) (o *ScriptRunnerOpt) {
|
||||
o = &ScriptRunnerOpt{
|
||||
Enabled: false,
|
||||
Addr: "corredor:80",
|
||||
MaxBackoffDelay: time.Minute,
|
||||
Log: false,
|
||||
|
||||
Reference in New Issue
Block a user