
How Jett uses Trigger.dev and background workers to isolate heavy LLM classification tasks, semantic scoring, and auto-labeling from webhook response cycles.
In this video deep dive, we walk through how Jett uses an asynchronous background queue to analyze, label, and index incoming emails without slowing down the initial delivery webhook.
When a mail provider (like Gmail or Outlook) sends a push notification of a new message, Jett must acknowledge the payload in less than 500ms to prevent timeout errors and redeliveries. Invoking LLMs (which can take 1.5s to 4s) during this HTTP lifecycle is impossible.
Jett uses a database-backed job queue for parsing and classification tasks.
200 OK.SKIP LOCKED to prevent concurrent execution), runs the text extraction, calls the LLM classifier, and persists the resulting AI labels.This ensures that even during high-traffic sync bursts, the ingress pipeline remains completely responsive.