mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-18 21:15:16 +02:00
style: ruff format Redis heartbeat refresh in connectors route
This commit is contained in:
parent
456dd7417c
commit
a08066e2f9
1 changed files with 1 additions and 3 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue