Trigger Authoring 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 Updated

File contents

triggerdotdev/trigger.dev/tree/main/packages/trigger-sdk/skills/trigger-authoring-tasks commit 9192fa8964

Frequently asked questions

npx skillmds@latest add triggerdotdev/trigger-authoring-tasks