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

Handle in-progress uploads when study ends unexpectedly #348

Open
becky-gilbert opened this issue Oct 30, 2023 · 0 comments
Open

Handle in-progress uploads when study ends unexpectedly #348

becky-gilbert opened this issue Oct 30, 2023 · 0 comments

Comments

@becky-gilbert
Copy link
Contributor

Summary

Attempt to abort any unfinished video recording uploads to S3 when the participant's browser is closed.

Description

The new RecordRTC video recording system is using AWS' S3 multi-part upload tools. This means that we need to call 'complete' on the video upload when recording is finished. However, sometimes the study might end unexpectedly before it has a chance to call the complete function (e.g. if the participant closes the browser), and if we don't abort or complete an upload, we're still charged for the parts that were uploaded. One way to address this is to try to quickly handle any in-progress video uploads when the browser is closing.

Implementation

We could consider having EFP try to either complete or abort any in-progress uploads when the study ends unexpectedly.

Also, S3 might have a "timeout" setting that we could use to remove "abandoned" multipart uploads.

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

No branches or pull requests

1 participant