Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the timeout for mediaconvert to support big mp4 files #461

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Feb 14, 2023

When we start supporting mp4 output, then the current timeout for saving data (5 min) may not be high enough. This PR increases this timeout.

However, I think we could think about an approach in which the timeout actually depends on the file size. @emranemran @victorges wdyt?

Also a comment from @emranemran

Will this cause issues with Studio timeouts?
https://github.com/livepeer/studio/blob/23b1aa453bbef83981ad2547169c7149f0436e35/packages/api/src/store/task-table.ts#L7-L9
If we're stuck in UploadToOSURL, is our callback to Studio ReportProgress called concurrently?
cc @victorges

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #461 (e082de2) into main (8b4f260) will not change coverage.
The diff coverage is 100.00000%.

Impacted file tree graph

@@              Coverage Diff              @@
##                main        #461   +/-   ##
=============================================
  Coverage   55.36547%   55.36547%           
=============================================
  Files             40          40           
  Lines           3215        3215           
=============================================
  Hits            1780        1780           
  Misses          1288        1288           
  Partials         147         147           
Impacted Files Coverage Δ
clients/input_copy.go 58.62069% <100.00000%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b4f260...e082de2. Read the comment docs.

Impacted Files Coverage Δ
clients/input_copy.go 58.62069% <100.00000%> (ø)

Copy link
Member

@victorges victorges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM either way

@@ -481,7 +481,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, 30*time.Minute)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have a const for this (my bad)

@leszko leszko force-pushed the rafal/increase-mediaconvert-timeout branch from 0cb358f to e082de2 Compare February 16, 2023 15:16
@leszko leszko merged commit 063c2dc into main Feb 17, 2023
@leszko leszko deleted the rafal/increase-mediaconvert-timeout branch February 17, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants