Reduce severity of "Too many idle runners"
This commit is contained in:
@ -242,7 +242,7 @@ func (n *NomadEnvironment) ApplyPrewarmingPoolSize() error {
|
|||||||
if required < 0 {
|
if required < 0 {
|
||||||
log.WithError(ErrScaleDown).
|
log.WithError(ErrScaleDown).
|
||||||
WithField(dto.KeyEnvironmentID, n.ID().ToString()).
|
WithField(dto.KeyEnvironmentID, n.ID().ToString()).
|
||||||
WithField("offset", -required).Warn("Too many idle runner")
|
WithField("offset", -required).Info("Too many idle runner")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return n.createRunners(uint(required), true)
|
return n.createRunners(uint(required), true)
|
||||||
@ -259,7 +259,7 @@ func (n *NomadEnvironment) Sample() (runner.Runner, bool) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
} else if ok {
|
} else if ok {
|
||||||
log.WithField(dto.KeyEnvironmentID, n.ID().ToString()).Warn("Too many idle runner")
|
log.WithField(dto.KeyEnvironmentID, n.ID().ToString()).Info("Too many idle runner")
|
||||||
}
|
}
|
||||||
return r, ok
|
return r, ok
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user