From a59a916b7e4b6b269249d2893dc0e8e09c8d00e1 Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Mon, 10 Mar 2025 23:57:10 -0500 Subject: [PATCH] Update metrics.py --- app/web/utils/metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/web/utils/metrics.py b/app/web/utils/metrics.py index 04b496f..5358cc5 100644 --- a/app/web/utils/metrics.py +++ b/app/web/utils/metrics.py @@ -37,11 +37,11 @@ DATABASE_METRICS_COUNTER = Counter( ) -async def redis_subscribe_worker_exceptions(REDIS_EXCEPTIONS_CHANNEL: str): +async def redis_subscribe_worker_exceptions(redis_exceptions_channel: str): # Subscribe to Redis channel and increment the counter for each exception with info on the exception and task Redis = get_redis() PubSubExceptions = Redis.pubsub() - PubSubExceptions.subscribe(REDIS_EXCEPTIONS_CHANNEL) + PubSubExceptions.subscribe(redis_exceptions_channel) while True: message = PubSubExceptions.get_message() if message and message["type"] == "message":