learningequality / learningequality/studio

Speed up response of /api/finish_channel

Open
#984 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

TAG: performance
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

The implementation for that function (/views/internal.py:api_commit_channel) takes more than 5 minutes to reply for the KA chef. Let's optimize this to make it return a value faster by either parallelizing things or running it in a worker, and making the ricecooker poll an endpoint for progress.

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 with /views/internal.py:api_commit_channel and trace the /api/finish_channel request path. Compare the parallelization and worker approaches described in the issue, including how ricecooker would poll for progress. Done means the endpoint returns faster and progress can be polled as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.