From 24fb00aef2f04bcf03ec2094d84ac978db315d94 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 1 Apr 2026 18:00:20 +0200 Subject: [PATCH] Fix jobs showing double: lpush was in both router AND Celery task The job ID was pushed to extraction:user_jobs:{uid} twice: 1. quizzes.py router when dispatching the job 2. quiz_tasks.py Celery task when it starts running Removed the push from the Celery task. Router handles it. Also cleaned 13 duplicate entries from Redis. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/app/tasks/quiz_tasks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/app/tasks/quiz_tasks.py b/backend/app/tasks/quiz_tasks.py index 22a2aa7..c27c2e8 100644 --- a/backend/app/tasks/quiz_tasks.py +++ b/backend/app/tasks/quiz_tasks.py @@ -51,8 +51,6 @@ def extract_quiz( ): r = _redis() r.set(f"extraction:status:{job_id}", "running", ex=EXPIRE_SECONDS) - r.lpush(f"extraction:user_jobs:{user_id}", job_id) - r.expire(f"extraction:user_jobs:{user_id}", 86400) db = SessionLocal() try: