From 6ed0752536c5d815834846eb75b5c36b87a687cc Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sun, 19 Jul 2026 02:25:42 +0200 Subject: [PATCH] fix: health check worker uses zcard instead of llen for arq sorted set queue --- app/core/monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/monitoring.py b/app/core/monitoring.py index 8bc69af..a6850a2 100644 --- a/app/core/monitoring.py +++ b/app/core/monitoring.py @@ -192,7 +192,7 @@ async def check_worker() -> dict[str, Any]: settings = get_settings() r = aioredis.from_url(settings.redis_url, decode_responses=True) # Check if arq queue key exists - queue_length = await r.llen("arq:queue") + queue_length = await r.zcard("arq:queue") await r.aclose() return {"status": "up", "queue_length": queue_length} except Exception as e: