From ca55d8a1ac2ab636cf765a0ac1b36b15c48d292d Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 21 Apr 2026 22:57:05 +0200 Subject: [PATCH 1/4] Bump taskbroker-client to >=0.1.9,<1 Exclude erroneous version 26.5.0 which has wrong version scheme colliding with calver (May 2026 = 26.5.x). Adding upper bound <1 to prevent similar issues with future misnumbered releases. Co-Authored-By: Claude Opus 4.5 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cd78754a..cf57b642 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,6 @@ rich>=14.1.0 sentry-arroyo==2.34.0 sentry-sdk>=2.36.0 sortedcontainers>=2.4.0 -taskbroker-client>=0.1.5 +taskbroker-client>=0.1.9,<1 typing-extensions>=4.15.0 zipfile-zstd==0.0.4 From e3dbe6753288da0dea0e5486af4477cf6a56c691 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 21 Apr 2026 23:03:49 +0200 Subject: [PATCH 2/4] Bump sentry-arroyo to fix CI Required by taskbroker-client 0.1.9. Co-Authored-By: Claude Opus 4.5 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index cf57b642..e9b10cea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ protobuf>=5.29.5,<6 pydantic>=2.9.2,<2.10.0 pyyaml>=6.0 rich>=14.1.0 -sentry-arroyo==2.34.0 +sentry-arroyo>=2.38.7 sentry-sdk>=2.36.0 sortedcontainers>=2.4.0 taskbroker-client>=0.1.9,<1 From b88fa4ea34c5266233f674d55b640ca91dabf937 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 21 Apr 2026 23:05:48 +0200 Subject: [PATCH 3/4] Update confluent-kafka constraint for sentry-arroyo compatibility sentry-arroyo>=2.38.7 requires confluent-kafka>=2.13.2, so we need to relax the upper bound constraint that was previously <2.10.0. Co-Authored-By: Claude Opus 4.5 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e9b10cea..c13e631b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ aiohttp>=3.12.15 asn1crypto>=1.5.0 build>=1.3.0 click>=8.1.0 -confluent-kafka>=2.9.0,<2.10.0 +confluent-kafka>=2.13.2 cryptography>=45.0.7 datadog==0.52.1 google-api-core==2.25.1 From 3ae234ae8bbc00da1e8032b27a84ef576a3689d2 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 21 Apr 2026 23:13:24 +0200 Subject: [PATCH 4/4] Add gauge method to TaskworkerMetricsBackend Required by taskbroker-client 0.1.9+. Co-Authored-By: Claude Opus 4.5 --- src/launchpad/worker/app.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/launchpad/worker/app.py b/src/launchpad/worker/app.py index 75976c36..c46c07ea 100644 --- a/src/launchpad/worker/app.py +++ b/src/launchpad/worker/app.py @@ -51,6 +51,18 @@ def distribution( kwargs["sample_rate"] = sample_rate self._dogstatsd.distribution(name, value, **kwargs) + def gauge( + self, + name: str, + value: int | float, + tags: Tags | None = None, + sample_rate: float | None = None, + ) -> None: + kwargs: dict = {"tags": _convert_tags(tags)} + if sample_rate is not None: + kwargs["sample_rate"] = sample_rate + self._dogstatsd.gauge(name, value, **kwargs) + @contextmanager def timer( self,