Kaynağa Gözat

fix: #672 Empty execution tracking ID in InternalLogEntry

jamesread 8 ay önce
ebeveyn
işleme
2ea35697d0
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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)