streameth-platform
streameth-platform copied to clipboard
[TASK] Implement a "re-fetching" mechanism for videos with `assetId` but no other fields
Description
The reason many of our videos seem to fail is that the webhook is not properly triggering the fetching of the video information once the assetId is ready. This might be due to some third party related thing that we cannot handle.
The first solution proposed is to have a cronjob that once every X amount of time, goes and checks for those failed videos (ones with assetId but with not other fields populated) and fetch their info.
Related User Story
N/A
Objectives
- [ ] Create a
cronjobin the server that will be looking for failed videos and re-fetch them - [ ] Define how often this
cronjobshould run
Acceptance Criteria
- [ ] The cronjob should not overload the server, so we need to make sure that the re-fetching mechanism is done efficiently
- [ ] It shouldn't the cronjob more than a minute or two to fully run and effectively update failed videos
Additional Information
This issue was the result of continuous communication with the livepeer team. This last conversation led to this issue being created