瀏覽代碼

fix: #672 Empty execution tracking ID in InternalLogEntry

jamesread 8 月之前
父節點
當前提交
2ea35697d0
共有 1 個文件被更改,包括 3 次插入0 次删除
  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)