From 164a6e650117b8d645f9e68001969799a4e7bf5d Mon Sep 17 00:00:00 2001 From: Rust Saiargaliev Date: Fri, 21 Nov 2025 09:05:11 +0100 Subject: [PATCH 1/2] Drop Prometheus middleware from dramatiq settings Prometheus client became optional in dramatiq: https://github.com/Bogdanp/dramatiq/releases/tag/v2.0.0 I think we don't need to cover all our dependencies's subdependencies, so it is fine to drop it. --- tests/testapp/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/testapp/settings.py b/tests/testapp/settings.py index ed06790..a4a8e1a 100644 --- a/tests/testapp/settings.py +++ b/tests/testapp/settings.py @@ -151,7 +151,6 @@ DRAMATIQ_BROKER = { "BROKER": os.getenv("DRAMATIQ_BROKER", "dramatiq.brokers.redis.RedisBroker"), "MIDDLEWARE": [ - "dramatiq.middleware.Prometheus", "dramatiq.middleware.AgeLimit", "dramatiq.middleware.TimeLimit", "dramatiq.middleware.Callbacks", From 4ab3e0ebb22bd0b3547f20c9dbc204583d2b1ba5 Mon Sep 17 00:00:00 2001 From: Rust Saiargaliev Date: Fri, 28 Nov 2025 16:14:37 +0100 Subject: [PATCH 2/2] Unfreeze dramatiq --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5786965..ffdcf2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,7 @@ test = [ "redis", ] dramatiq = [ - "dramatiq<2", + "dramatiq", "django-dramatiq", ] celery = [