lookit / lookit/lookit-api

Add a session cleanup task

Open
#602 0 comments 0 reactions 0 assignees View on GitHub
Cleanup Developer XS
Dominant language
Python
Stars
12
Forks
21
Avg merge
5d 19h
Merged PRs (30d)
5

Description

**TL;DR**: Remove expired sessions from the database on a regular basis.

Note that Django [does not automatically clear expired sessions](https://docs.djangoproject.com/en/3.1/topics/http/sessions/#clearing-the-session-store) so they just accumulate in the database. We can add a Celery task ourselves or use [django-session-cleanup](https://pypi.org/project/django-session-cleanup/).

Contributor guide

Open the contributing guide

Research direction

Read Django's session-clearing documentation and the django-session-cleanup package, then inspect how this repository handles Celery tasks and session storage. Done means expired sessions are removed from the database on a regular schedule, with coverage confirming the cleanup behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.