From 0abcebfc9491f87f605f21faa3e53996fafedd9a Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 18 Sep 2025 10:02:30 -0600 Subject: [PATCH] fix: invalid cleanup call (#660) --- server/reflector/worker/cleanup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/reflector/worker/cleanup.py b/server/reflector/worker/cleanup.py index e634994d..66d45e94 100644 --- a/server/reflector/worker/cleanup.py +++ b/server/reflector/worker/cleanup.py @@ -5,7 +5,6 @@ Deletes old anonymous transcripts and their associated meetings/recordings. Transcripts are the main entry point - any associated data is also removed. """ -import asyncio from datetime import datetime, timedelta, timezone from typing import TypedDict @@ -152,5 +151,5 @@ async def cleanup_old_public_data( retry_kwargs={"max_retries": 3, "countdown": 300}, ) @asynctask -def cleanup_old_public_data_task(days: int | None = None): - asyncio.run(cleanup_old_public_data(days=days)) +async def cleanup_old_public_data_task(days: int | None = None): + await cleanup_old_public_data(days=days)