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

segmenter: Fix error handling #164

Merged
merged 8 commits into from
Jun 13, 2022
Merged

segmenter: Fix error handling #164

merged 8 commits into from
Jun 13, 2022

Conversation

victorges
Copy link
Member

This is to fix the error handling in the testers/segmenter which is used by all
file-segmenting logic in livepeer.com outside of mist.

This includes task-runner, which is currently crashing anytime a segmenting
error happens on any task. Fixing that is the main objective of fixing this bug.

This fixes livepeer/task-runner#37

Also create startSegmentingLoop helper function to avoid some of the
boilerplate repetition.
It is just for logs anyway but still
Not something that should be affecting task-runner,
but I saw that and why not fix it.
@victorges victorges requested a review from figintern June 11, 2022 01:41
@victorges victorges requested a review from a team as a code owner June 11, 2022 01:41
Might fix task-runner memory as well
@victorges
Copy link
Member Author

Maaaaybe this could be related to livepeer/task-runner#19 as well

But not yet sure. Probably not. I need to take another look on that one.


return err
startSegmentingLoop(ctx, "", inFile, stopAtFileEnd, stopAfter, skipFirst, segLen, useWallTime, out)
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@victorges victorges merged commit 6c4c022 into master Jun 13, 2022
@victorges victorges deleted the vg/fix/error-handling branch June 13, 2022 17:26
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.

Fix error handling on video segmenting
2 participants