fix: Correct logging method from warning to warn for lock acquisition in AI Knowledge sync handler

This commit is contained in:
bsiggel
2026-03-12 23:00:08 +00:00
parent e945333c1a
commit 9a3e01d447

View File

@@ -55,7 +55,7 @@ async def handler(event_data: Dict[str, Any], ctx: FlowContext[Any]) -> None:
lock_acquired = await sync_utils.acquire_sync_lock(knowledge_id) lock_acquired = await sync_utils.acquire_sync_lock(knowledge_id)
if not lock_acquired: if not lock_acquired:
ctx.logger.warning(f"⏸️ Lock already held for {knowledge_id}, skipping") ctx.logger.warn(f"⏸️ Lock already held for {knowledge_id}, skipping")
ctx.logger.info(" (Will be retried by Motia queue)") ctx.logger.info(" (Will be retried by Motia queue)")
raise RuntimeError(f"Lock busy for {knowledge_id}") # Motia will retry raise RuntimeError(f"Lock busy for {knowledge_id}") # Motia will retry