Fix possible inconsistent state when upload video and when publish fail
Closed this issue · 0 comments
ClerySem commented
If a video is successfully upload on S3 and if video/upload state update is impossible (because database is down for example), we have an inconsistent state :
Video is available on S3 but
- video status is UPLOADING or FAIL_UPLOAD
- upload status is STARTED or FAILED
We could use UNKNOW status for both...
We could REMOVE the video from the S3
If video encode request publish on event bus failed, video is stuck in UPLOADED state
We could use status FAIL_ENCODE