trigger-tasks

Installation
Summary

Durable background tasks with automatic retries, queuing, scheduling, and observability for AI agents and workflows.

  • Create tasks with built-in retry logic, exponential backoff, and error handling; supports schema validation with Zod for type-safe payloads
  • Trigger tasks from backend code or within other tasks, with options for fire-and-forget, wait-for-result, or batch processing up to 1,000 items
  • Manage concurrency and queuing per-task or per-tenant, debounce rapid triggers, and enforce idempotency to prevent duplicate work
  • Schedule recurring tasks with cron expressions and timezone support, or create dynamic multi-tenant schedules on demand
  • Track progress and metadata in real-time, tag runs for filtering, and scale compute with machine presets from micro to large-2x configurations
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
1.6K
GitHub Stars
25
First Seen
Jan 28, 2026