fn: add missing dequeue in agent Submit (#1220)

This commit is contained in:
Tolga Ceylan
2018-09-17 17:58:12 -07:00
committed by GitHub
parent 2168396a30
commit 893ff1e6fc

View File

@@ -322,6 +322,7 @@ func (a *agent) handleCallEnd(ctx context.Context, call *call, slot Slot, err er
statsComplete(ctx)
}
} else {
statsDequeue(ctx)
if err == CapacityFull || err == context.DeadlineExceeded {
statsTooBusy(ctx)
return models.ErrCallTimeoutServerBusy