Background sync may not finish before a frozen Lambda or Edge runtime. Flush explicitly at handler end.
Agent hint
Use when deploying to Lambda, Cloud Functions, or Vercel — call flush() or await flushAndWait().
In scope
Out of scope
from aurex_sdk import AurexAuditor
auditor = AurexAuditor()
def handler(event, context):
# ... LLM work ...
auditor.flush()
return {"statusCode": 200}import { AurexAuditor } from "aurex-sdk";
const auditor = AurexAuditor.getInstance();
export async function handler(event) {
// ... LLM work ...
await auditor.flushAndWait();
return { statusCode: 200 };
}