streameth-platform icon indicating copy to clipboard operation
streameth-platform copied to clipboard

[TASK] Implement a "re-fetching" mechanism for videos with `assetId` but no other fields

Open Mario-SO opened this issue 6 months ago • 0 comments

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 cronjob in the server that will be looking for failed videos and re-fetch them
  • [ ] Define how often this cronjob should 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

CleanShot 2024-08-14 at 10 13 47

Mario-SO avatar Aug 14 '24 08:08 Mario-SO