Skip to content

Commit

Permalink
Add clipping logging (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomshutt authored Oct 29, 2024
1 parent d48b0cc commit 52e43d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipeline/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,16 @@ func (c *Coordinator) StartUploadJob(p UploadJobPayload) {
// Update osTransferURL if needed
if clients.IsHLSInput(sourceURL) {
// Handle falling back to backup bucket for manifest and segments
log.Log(p.RequestID, "Starting recording backup check")
sourceURL, err = clients.RecordingBackupCheck(p.RequestID, sourceURL, osTransferURL.JoinPath(".."))
if err != nil {
return nil, err
}
log.Log(p.RequestID, "Completed recording backup check")

// Currently we only clip an HLS source (e.g recordings or transcoded asset)
if p.ClipStrategy.Enabled {
log.Log(p.RequestID, "Clipping enabled")
err := backoff.Retry(func() error {
log.Log(p.RequestID, "clippity clipping the input", "Playback-ID", p.ClipStrategy.PlaybackID)
// Use new clipped manifest as the source URL
Expand All @@ -311,6 +314,8 @@ func (c *Coordinator) StartUploadJob(p UploadJobPayload) {
if err != nil {
return nil, err
}
} else {
log.Log(p.RequestID, "Clipping not enabled")
}
// Use the source URL location as the transfer directory to hold the clipped outputs
osTransferURL = sourceURL
Expand Down

0 comments on commit 52e43d8

Please sign in to comment.