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

Remove unused tasks Import and Transcode #215

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Remove unused tasks Import and Transcode #215

merged 3 commits into from
Sep 20, 2023

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Sep 18, 2023

Import was previously used for recordings v1
Transcode was another legacy flow, for creating a "mutation" of existing assets e.g. to ask for a different profile for the master rendition

@mjh1 mjh1 marked this pull request as ready for review September 19, 2023 11:46
@mjh1 mjh1 requested a review from a team as a code owner September 19, 2023 11:46
task/transcode.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #215 (36ae13f) into main (10cd899) will increase coverage by 2.35268%.
The diff coverage is 0.00000%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main        #215         +/-   ##
===================================================
+ Coverage   15.35565%   17.70833%   +2.35268%     
===================================================
  Files             19          17          -2     
  Lines           2390        1920        -470     
===================================================
- Hits             367         340         -27     
+ Misses          1997        1555        -442     
+ Partials          26          25          -1     
Files Changed Coverage Δ
api/errors.go 0.00000% <ø> (ø)
task/files.go 0.00000% <0.00000%> (ø)
task/paths.go 64.28571% <ø> (+8.03571%) ⬆️
task/runner.go 22.19959% <ø> (ø)
task/upload.go 21.24248% <0.00000%> (ø)

Continue to review full report in Codecov by Sentry.

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

Files Changed Coverage Δ
api/errors.go 0.00000% <ø> (ø)
task/files.go 0.00000% <0.00000%> (ø)
task/paths.go 64.28571% <ø> (+8.03571%) ⬆️
task/runner.go 22.19959% <ø> (ø)
task/upload.go 21.24248% <0.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.

Great cleanup!

BTW, one thing you also have to do is remove the creation of such deleted tasks from the Studio API. Both for cleaning up that code as well but also to avoid weird errors in case these APIs eventually get called

task/transcode.go Outdated Show resolved Hide resolved
task/transcode.go Outdated Show resolved Hide resolved
task/upload.go Outdated Show resolved Hide resolved
task/upload.go Outdated Show resolved Hide resolved
@mjh1 mjh1 merged commit d2db907 into main Sep 20, 2023
13 checks passed
@mjh1 mjh1 deleted the mh/remove-import branch September 20, 2023 14:25
maxStartTime = math.Max(maxStartTime, startTime)
}
}
glog.Infof("Probed video file assetId=%s filename=%q format=%q width=%d height=%d bitrate=%s startTime=%v maxStreamStartTime=%v %s",

Choose a reason for hiding this comment

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

@mjh1 I guess this alert is not needed since this line got removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah i'd remove, must not be relevant anymore, I'm not aware we're checking for that condition on the alert anymore

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.

None yet

3 participants