Skip to content

Commit

Permalink
Increase the timeout for mediaconvert to support big mp4 files (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko authored Feb 17, 2023
1 parent f6ace40 commit 063c2dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/input_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/livepeer/go-tools/drivers"
)

const MAX_COPY_FILE_DURATION = 30 * time.Minute

type InputCopy struct {
S3 S3
Probe video.Prober
Expand Down Expand Up @@ -82,7 +84,7 @@ func CopyFile(ctx context.Context, sourceURL, destOSBaseURL, filename, requestID

content := io.TeeReader(c, &writtenBytes)

err = UploadToOSURL(destOSBaseURL, filename, content, 5*time.Minute)
err = UploadToOSURL(destOSBaseURL, filename, content, MAX_COPY_FILE_DURATION)
if err != nil {
return writtenBytes.count, fmt.Errorf("upload error: %w", err)
}
Expand Down

0 comments on commit 063c2dc

Please sign in to comment.