Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: job update on async message route failure (#3281)
cthomasda984a16368f
diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.pyindex 3f0565438..78355f668 100644--- a/letta/server/rest_api/routers/v1/agents.py+++ b/letta/server/rest_api/routers/v1/agents.py@@ -1072,7 +1072,7 @@ async def _process_message_background(completed_at=datetime.now(timezone.utc),metadata={"error": str(e)},)- await server.job_manager.update_job_by_id_async(job_id=job_id, job_update=job_update, actor=actor)+ await server.job_manager.update_job_by_id_async(job_id=run_id, job_update=job_update, actor=actor)@router.post(