learningequality / learningequality/studio

Automatically generate a thumbnail on file uploads

Open
#1,577 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DEV: frontend
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:

  1. first use the uploaded file data to generate the thumbnail so we don't have to re-read the video from Google Cloud, and

  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.