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

Remote runner upload success file using external url #6135

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

polyhb
Copy link
Contributor

@polyhb polyhb commented Dec 21, 2023

Description

The goal is to make the remote runner upload success files using directly a given url instead of sending them to the server. It avoids the server to have to download the file and upload it again, thus reducing resources usage.

This is an implementation proposition for the HLSTranscoding jobs. After your feedback and if you are ok with this, I'll do the same for the other jobs.

Related issues

#6130

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because this PR does not update server code
  • 🙋 no, because I need help

@polyhb polyhb force-pushed the hbaudesson/remote-runner-upload-external-url branch 2 times, most recently from f9f5022 to 29af130 Compare December 21, 2023 21:23
@polyhb polyhb force-pushed the hbaudesson/remote-runner-upload-external-url branch 2 times, most recently from 2e39bb7 to bbf19d2 Compare January 18, 2024 21:20
Remote runner can now upload a success file using directly to
a given url instead to the server. It avoids the server to have to
download the file and upload it again, thus reducing resources
usage.
@polyhb polyhb force-pushed the hbaudesson/remote-runner-upload-external-url branch from bbf19d2 to 2ff8bc1 Compare January 18, 2024 21:22
Copy link
Owner

@Chocobozzz Chocobozzz left a comment

Choose a reason for hiding this comment

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

Really sorry about the delay :/ Just have one small question :)

@@ -116,7 +116,9 @@ export async function processHLSTranscoding (options: ProcessOptions<RunnerJobVO

const successBody: VODHLSTranscodingSuccess = {
resolutionPlaylistFile: outputPath,
videoFile: videoPath
videoFile: videoPath,
uploadVideoFileUrl: payload.output.videoFileUrl,
Copy link
Owner

Choose a reason for hiding this comment

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

Why do we specify this in the body success?

I think we should do one of the following:

  • the S3 URL of the object
  • a boolean specifying the runner uploaded the resource on S3
  • nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants