Trigger Tasks

Covers writing backend Trigger.dev tasks with @trigger.dev/sdk: defining task() and schemaTask(), the run function and its ctx, retries, waits, queues and concurrency, idempotency keys, run metadata, logging, triggering other tasks (and the Result shape), scheduled/cron tasks, and the essentials of trigger.config.ts. Load this whenever you are authoring or editing code inside a /trigger directory, defining a task, or writing backend code that triggers tasks. Realtime/React hooks and AI chat are covered by separate skills.

triggerdotdev d1d1de7 10.8 KB Updated

File contents

triggerdotdev/skills/tree/main/trigger-tasks commit d1d1de751c

Frequently asked questions

npx skillmds add triggerdotdev/trigger-tasks