tasks

Installation
SKILL.md

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 @trigger.dev/sdk — never use deprecated client.defineJob
  2. Check result.ok before accessing result.output from triggerAndWait()
  3. Never use Promise.all with triggerAndWait() or wait.* calls
  4. Export tasks from files in your trigger/ directory
Related skills
Installs
3
GitHub Stars
25
First Seen
Jan 28, 2026