mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: fail count should include timeouts (#577)
* fn: fail count should include timeouts
This commit is contained in:
@@ -215,7 +215,7 @@ func (a *agent) Submit(callI Call) error {
|
||||
|
||||
slot, err := a.getSlot(ctx, call) // find ram available / running
|
||||
if err != nil {
|
||||
a.stats.Dequeue(callI.Model().AppName, callI.Model().Path)
|
||||
a.stats.DequeueAndFail(callI.Model().AppName, callI.Model().Path)
|
||||
return transformTimeout(err, true)
|
||||
}
|
||||
// TODO if the call times out & container is created, we need
|
||||
@@ -225,7 +225,7 @@ func (a *agent) Submit(callI Call) error {
|
||||
// TODO Start is checking the timer now, we could do it here, too.
|
||||
err = call.Start(ctx)
|
||||
if err != nil {
|
||||
a.stats.Dequeue(callI.Model().AppName, callI.Model().Path)
|
||||
a.stats.DequeueAndFail(callI.Model().AppName, callI.Model().Path)
|
||||
return transformTimeout(err, true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user