From 9fe83177fb34c2a5201db4c392fbb7bc10f49368 Mon Sep 17 00:00:00 2001 From: Rafael JP Damaceno Date: Sun, 8 Nov 2026 20:47:08 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Fixa=20o=20transporte=20Redis=20compat?= =?UTF-8?q?=C3=ADvel=20com=20o=20Celery?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Evita resolver uma versão do Kombu incompatível com o cliente Redis utilizado na aplicação. --- requirements/base.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements/base.txt b/requirements/base.txt index 2cf8ecc..0939859 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -6,7 +6,8 @@ argon2-cffi==23.1.0 # https://github.com/hynek/argon2_cffi whitenoise==6.6.0 # https://github.com/evansd/whitenoise redis==5.0.1 # https://github.com/redis/redis-py hiredis==2.2.3 # https://github.com/redis/hiredis-py -celery==5.3.6 # pyup: < 6.0 # https://github.com/celery/celery +celery[redis]==5.3.6 # pyup: < 6.0 # https://github.com/celery/celery +kombu[redis]==5.6.2 # https://github.com/celery/kombu flower==2.0.1 # https://github.com/mher/flower xmltodict==0.13.0 # https://github.com/martinblech/xmltodict.git From c842a153ef0ba3dfe84a40041dc541b8bad6d27e Mon Sep 17 00:00:00 2001 From: Rafael JP Damaceno Date: Sun, 8 Nov 2026 20:47:08 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Verifica=20a=20conex=C3=A3o=20do=20Celery?= =?UTF-8?q?=20com=20Redis=20no=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Detecta incompatibilidades do transporte que a suíte sem conexão ao broker não identifica. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 921f17b..e02c8c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,16 @@ jobs: - name: Run DB Migrations run: docker compose -f local.yml run --rm django python manage.py migrate + - name: Check Celery Redis Transport + run: | + docker compose -f local.yml run --rm django python -c ' + from config.celery_app import app + + with app.connection_for_write() as connection: + connection.ensure_connection(max_retries=0) + connection.channel() + ' + - name: Run Django Tests run: docker compose -f local.yml run django pytest