UBERF-12153 Transcode only created blobs (#24)

This commit is contained in:
Alexander Onnikov
2025-07-03 19:05:12 +07:00
committed by GitHub
2 changed files with 7 additions and 4 deletions
+6 -4
View File
@@ -36,14 +36,16 @@ type TranscodeRequest struct {
BlobID string
WorkspaceUUID string
ContentType string
Source map[string]any
}
// TranscodeResult represents transcode result.
type TranscodeResult struct {
BlobID string `json:"blobId"`
WorkspaceUUID string `json:"workspaceUuid"`
Playlist string `json:"playlist"`
Thumbnail string `json:"thumbnail"`
BlobID string `json:"blobId"`
WorkspaceUUID string `json:"workspaceUuid"`
Source map[string]any `json:"source"`
Playlist string `json:"playlist"`
Thumbnail string `json:"thumbnail"`
}
// ConsumerOptions represents options for the consumer
+1
View File
@@ -115,6 +115,7 @@ func (w *Worker) processMessage(ctx context.Context, msg kafka.Message, logger *
result := TranscodeResult{
BlobID: req.BlobID,
WorkspaceUUID: req.WorkspaceUUID,
Source: req.Source,
Playlist: res.Playlist,
Thumbnail: res.Thumbnail,
}