Trigger.dev Tasks Build durable background tasks that run reliably with automatic retries, queuing, and observability. When to Use - Creating background jobs or async workflows - Building AI agents that need long-running execution - Processing webhooks, emails, or file uploads - Scheduling recurring tasks (cron) - Any work that shouldn't block your main application Critical Rules 1. Always use — never use deprecated 2. Check before accessing from 3. Never use with or calls 4. Export tasks from files in your directory Basic Task Schema Task (Validated Input) Triggering Tasks From Backend Code…