fn: LB agent: reduce 'Too Busy' error logs (#1033)

With this PR, runner client translates too busy errors
from gRPC session and runner itself into Fn error type.
Placers now ignore this error message to reduce unnecessary
logging.
This commit is contained in:
Tolga Ceylan
2018-06-04 12:16:00 -07:00
committed by GitHub
parent 7261ddedcc
commit 1cd5894f41
3 changed files with 8 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ func (sp *naivePlacer) PlaceCall(rp RunnerPool, ctx context.Context, call Runner
placed, err := r.TryExec(tryCtx, call)
tryCancel()
if err != nil {
if err != nil && err != models.ErrCallTimeoutServerBusy {
logrus.WithError(err).Error("Failed during call placement")
}
if placed {