Skip to content

Commit 8b45944

Browse files
committed
Add Area in ExecutionReport
1 parent d68b2fd commit 8b45944

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

internal/function/request.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type ExecutionReport struct {
3232
OffloadLatency float64 // time spent offloading the request
3333
Duration float64 // execution (service) time
3434
Output string
35+
Area string
3536
}
3637

3738
type Response struct {

internal/scheduling/execution.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package scheduling
22

33
import (
44
"fmt"
5+
"github.com/serverledge-faas/serverledge/internal/node"
56
"log"
67
"time"
78

@@ -64,6 +65,7 @@ func Execute(cont *container.Container, r *scheduledRequest, isWarm bool) error
6465
r.ResponseTime = time.Now().Sub(r.Arrival).Seconds()
6566
// initializing containers may require invocation retries, adding // latency
6667
r.InitTime = initTime + invocationWait.Seconds()
68+
r.Area = node.LocalNode.Area
6769

6870
// notify scheduler
6971
completions <- &completionNotification{r: r, cont: cont, failed: false}

0 commit comments

Comments
 (0)