Browse Source

fix: #672 Empty execution tracking ID in InternalLogEntry

jamesread 8 tháng trước cách đây
mục cha
commit
2ea35697d0
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      service/internal/executor/executor.go

+ 3 - 0
service/internal/executor/executor.go

@@ -286,6 +286,9 @@ func (e *Executor) ExecRequest(req *ExecutionRequest) (*sync.WaitGroup, string)
 		req.TrackingID = uuid.NewString()
 	}
 
+	// Update the log entry with the final tracking ID
+	req.logEntry.ExecutionTrackingID = req.TrackingID
+
 	log.Tracef("executor.ExecRequest(): %v", req)
 
 	e.SetLog(req.TrackingID, req.logEntry)