Merge remote-tracking branch 'origin/main' into mathieu/sqlalchemy-2-migration

This commit is contained in:
2025-09-23 00:57:31 -06:00
5 changed files with 431 additions and 400 deletions

View File

@@ -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
@@ -226,5 +225,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)

View File

@@ -213,7 +213,6 @@ async def process_meetings():
should_deactivate = True
logger_.info(
"Meeting deactivated - scheduled time ended with no participants",
meeting.id,
)
else:
logger_.debug("Meeting not yet started, keep it")
@@ -224,8 +223,8 @@ async def process_meetings():
processed_count += 1
except Exception as e:
logger_.error(f"Error processing meeting", exc_info=True)
except Exception:
logger_.error("Error processing meeting", exc_info=True)
finally:
try:
lock.release()
@@ -233,7 +232,7 @@ async def process_meetings():
pass # Lock already released or expired
logger.info(
f"Processed meetings finished",
"Processed meetings finished",
processed_count=processed_count,
skipped_count=skipped_count,
)