style: ruff format
All checks were successful
CI / lint-and-test (push) Successful in 25s

This commit is contained in:
2026-04-22 10:08:32 +02:00
parent e4bafbc4b0
commit cbd46adaa6
5 changed files with 28 additions and 5 deletions

View File

@@ -56,7 +56,10 @@ async def set_cached_explain(redis, event_id: str, result: dict):
# arq job functions
# ---------------------------------------------------------------------------
async def process_ask_question(ctx, question: str, filters: dict, events: list, total: int, excluded_services: list | None):
async def process_ask_question(
ctx, question: str, filters: dict, events: list, total: int, excluded_services: list | None
):
"""Background job: call LLM for /api/ask and cache result."""
from routes.ask import _call_llm
@@ -92,6 +95,7 @@ async def process_explain_event(ctx, event_id: str, event: dict, related: list):
# arq worker configuration
# ---------------------------------------------------------------------------
async def startup(ctx):
from redis.asyncio import Redis