Skip to content

Commit 772a4e2

Browse files
committed
Add ExecutionNode information in ExecutionReport
1 parent 5f21dd7 commit 772a4e2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

internal/function/request.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ type ExecutionReport struct {
3232
OffloadLatency float64 // time spent offloading the request
3333
Duration float64 // execution (service) time
3434
Output string
35-
Area string
35+
ExecutionArea string
36+
ExecutionNode string
3637
}
3738

3839
type Response struct {

internal/scheduling/execution.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ func Execute(cont *container.Container, r *scheduledRequest, isWarm bool) error
6565
r.ResponseTime = time.Now().Sub(r.Arrival).Seconds()
6666
// initializing containers may require invocation retries, adding // latency
6767
r.InitTime = initTime + invocationWait.Seconds()
68-
r.Area = node.LocalNode.Area
68+
r.ExecutionArea = node.LocalNode.Area
69+
r.ExecutionNode = node.LocalNode.Key
6970

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

0 commit comments

Comments
 (0)