re-enable watchdog

This commit is contained in:
Steven Allen 2021-01-22 11:19:37 -08:00
parent 94089a6a15
commit 0131b077be

View File

@ -71,7 +71,7 @@ func MemoryConstraints() system.MemoryConstraints {
// MemoryWatchdog starts the memory watchdog, applying the computed resource
// constraints.
func MemoryWatchdog(lr repo.LockedRepo, lc fx.Lifecycle, constraints system.MemoryConstraints) {
if true || os.Getenv(EnvWatchdogDisabled) == "1" {
if os.Getenv(EnvWatchdogDisabled) == "1" {
log.Infof("memory watchdog is disabled via %s", EnvWatchdogDisabled)
return
}