Skip to content
Permalink
Browse files
fix(deploy): status-progress-period and hooks-status-progress-period …
…params fix

Added WERF_STATUS_PROGRESS_PERIOD and WERF_HOOKS_STATUS_PROGRESS_PERIOD environment variables in addition to WERF_STATUS_PROGRESS_PERIOD_SECONDS and WERF_HOOKS_STATUS_PROGRESS_PERIOD_SECONDS.
  • Loading branch information
distorhead committed Dec 7, 2021
1 parent 2f2d271 commit 2522b25e6b27488bfb5beae98fb1a379571f5202
Showing with 20 additions and 2 deletions.
  1. +20 −2 cmd/werf/common/common.go
@@ -498,7 +498,16 @@ func statusProgressPeriodDefaultValue() *int64 {
}

if v == nil {
return &defaultValue
v, err = GetIntEnvVar("WERF_STATUS_PROGRESS_PERIOD")
if err != nil {
TerminateWithError(err.Error(), 1)
}

if v == nil {
return &defaultValue
} else {
return v
}
} else {
return v
}
@@ -528,7 +537,16 @@ func hooksStatusProgressPeriodDefaultValue() *int64 {
}

if v == nil {
return defaultValue
v, err = GetIntEnvVar("WERF_HOOKS_STATUS_PROGRESS_PERIOD")
if err != nil {
TerminateWithError(err.Error(), 1)
}

if v == nil {
return defaultValue
} else {
return v
}
} else {
return v
}

0 comments on commit 2522b25

Please sign in to comment.