learningequality / learningequality/studio
Automatically generate a thumbnail on file uploads
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Summary
Due to generate_thumbnail timing out for videos, we'll need some way to better handle this. As per our post-mortem, we decided to:
-
first use the uploaded file data to generate the thumbnail so we don't have to re-read the video from Google Cloud, and
-
see if we can either speed up the thumbnail generation or make the thumbnail generation an async task so it's okay if it takes over a minute to complete.
Category
Select one: OPTIMIZATION
Real-life consequences (anything community should be aware of, for instance how it affects end users)
Users won't be able to generate video thumbnails
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the generate_thumbnail function and the file-upload path, then review the linked post-mortem for the timeout context. The work is done when thumbnail generation uses the uploaded file data and either completes faster or runs asynchronously so videos do not fail after a minute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, python
- Domain
- backend, cloud, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100