From a2ba3d8d2bd1ccec3891f900db8815c411f223ad Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 9 Apr 2026 12:27:15 +0500 Subject: [PATCH] fix: pin bcrypt==4.0.1 for passlib compat, explicit celery task imports - bcrypt 5.x breaks passlib 1.7.4, pin to 4.0.1 - autodiscover_tasks not finding task modules, add explicit imports Co-Authored-By: Claude Opus 4.6 (1M context) --- backend/app/tasks/celery_app.py | 4 ++++ backend/requirements.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/backend/app/tasks/celery_app.py b/backend/app/tasks/celery_app.py index 7dd3095..32647f6 100644 --- a/backend/app/tasks/celery_app.py +++ b/backend/app/tasks/celery_app.py @@ -25,3 +25,7 @@ celery_app.conf.update( ) celery_app.autodiscover_tasks(["app.tasks"]) + +import app.tasks.transcription # noqa: F401, E402 +import app.tasks.protocol # noqa: F401, E402 +import app.tasks.cleanup # noqa: F401, E402 diff --git a/backend/requirements.txt b/backend/requirements.txt index 1455bbf..b07f7e4 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -15,6 +15,7 @@ pydantic-settings==2.7.1 # Auth passlib[bcrypt]==1.7.4 +bcrypt==4.0.1 python-jose[cryptography]==3.3.0 # Task queue