Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@timerring
Copy link
Owner

@timerring timerring commented Apr 1, 2025

Description

Add reserve queue, for a normal video whose locked status is 0, it will be uploaded as usual.

But if there is a:

  • JIT error(I named it, which means the ffprobe cannot read its metadata in an extremely short period after rendering)
  • interrupted error(kill -9 without deleting the record after removing the video)
  • just MOOV crash error(the metadata lost).

The video will be locked(1).

When the normal queue is empty, the locked queue will be processed. But in this turn, the vidoe has been generated for a long time, there won't be JIT error, and the interrupted error will delete the record directly. So there will be only the MOOV videos left, and I add the reserve queue.

If the user decides to reserve the videos, he can just make the RESERVE_FOR_FIXING = True, the locked status of the video will be 2. However, if the flag is False, the video with MOOV crash will be deleted directly.

Related Issues

#224

Who Can Review?

@timerring

Checklist

  • Code has been reviewed
  • Code complies with the project's code standards and best practices
  • Code has passed all tests
  • Code does not affect the normal use of existing features
  • Code has been commented properly
  • Documentation has been updated (if applicable)
  • Demo/checkpoint has been attached (if applicable)

@timerring timerring self-assigned this Apr 1, 2025
Copy link
Owner Author

@timerring timerring left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] 希望出个检测未成功上传文件并再度自动上传的功能

2 participants