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

prevent multiple post-process triggering of upload-resumable #4175

Merged
merged 4 commits into from
Oct 25, 2021

Conversation

rigelk
Copy link
Collaborator

@rigelk rigelk commented Jun 8, 2021

Description

The last PUT request should only be trigger-able once, whatever the situation.
This PR keeps track of the upload_id being processed, and answer a 503 Service Unavailable on later PUT requests made for the same upload_id. Once the video upload has finished processing, it stores the response and doesn't delete the associated meta file for 15 min, allowing for other requests to be responded with the final response of the initial request instead of the 503 during that timeframe.

Related issues

fixes #4173

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 👍 yes, light tests as follows are enough
  • 💭 no, because this PR is a draft and still needs work

@rigelk rigelk force-pushed the prevent-multiple-resumable-put branch 6 times, most recently from d111523 to 0ce2345 Compare June 8, 2021 12:38
@rigelk rigelk force-pushed the prevent-multiple-resumable-put branch from 0ce2345 to 0cd0f98 Compare June 8, 2021 14:32
@rigelk rigelk force-pushed the prevent-multiple-resumable-put branch 2 times, most recently from e4a15d4 to 5c0923d Compare June 8, 2021 20:51
@rigelk rigelk force-pushed the prevent-multiple-resumable-put branch from 5c0923d to ed54e70 Compare June 8, 2021 21:38
@rigelk rigelk marked this pull request as ready for review June 9, 2021 09:52
@Chocobozzz Chocobozzz merged commit 276250f into Chocobozzz:develop Oct 25, 2021
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.

Resumable upload last PUT request can be triggered multiple times
2 participants