learningequality / learningequality/studio
Speed up response of /api/finish_channel
Nobody has claimed this yet.
- 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
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 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