fix: Correct logging method from warning to warn for lock acquisition in AI Knowledge sync handler
This commit is contained in:
@@ -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)
|
||||
|
||||
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)")
|
||||
raise RuntimeError(f"Lock busy for {knowledge_id}") # Motia will retry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user