style: ruff format Redis heartbeat refresh in connectors route

This commit is contained in:
Matt Van Horn 2026-04-26 08:59:16 -07:00
parent 456dd7417c
commit a08066e2f9
No known key found for this signature in database

View file

@ -103,9 +103,7 @@ async def _run_indexing_heartbeat_loop(notification_id: int) -> None:
while True:
await asyncio.sleep(HEARTBEAT_REFRESH_INTERVAL)
try:
get_heartbeat_redis_client().setex(
key, HEARTBEAT_TTL_SECONDS, "alive"
)
get_heartbeat_redis_client().setex(key, HEARTBEAT_TTL_SECONDS, "alive")
except Exception as e:
logger.warning(
f"Failed to refresh Redis heartbeat for notification "